AT-NFC 2.1 (win) AT-NFC kernel set

Macros | Functions
hal_nfc_trace.h File Reference

Go to the source code of this file.

## Macros
#define | KER_NFC_TRACE_OUTCOME_ERR(Err, Ref, Descr)
| Default "trace outcome error" macro. More...
#define | KER_NFC_TRACE_OUTCOME(Ref, Descr, OutcomeDescr)
| Default "trace outcome" macro. More...
#define | KER_NFC_TRACE_EP_OUTCOME(OutcomeDescr)
| Default "trace outcome" macro. More...

## Functions
KER_BOOL | nfcOutcomeTrace (KER_CTX_PARAM NFC_OUTCOME *pOutcome, const KER_CHAR *pchRef, const KER_CHAR *pchDescr, KER_CHAR *pchOutcome)
| Trace outcome. More...

## Detailed Description

HAL NFC trace-related functions interface definition

## Macro Definition Documentation

## ◆ KER_NFC_TRACE_EP_OUTCOME

#define KER_NFC_TRACE_EP_OUTCOME | ( |  | OutcomeDescr | ) |

Default "trace outcome" macro.

Empty trace outcome macro

## ◆ KER_NFC_TRACE_OUTCOME

#define KER_NFC_TRACE_OUTCOME | ( |  | Ref,
|  |  | Descr,
|  |  | OutcomeDescr
| ) |  |

Default "trace outcome" macro.

Empty trace outcome macro

## ◆ KER_NFC_TRACE_OUTCOME_ERR

#define KER_NFC_TRACE_OUTCOME_ERR | ( |  | Err,
|  |  | Ref,
|  |  | Descr
| ) |  |

Value:
do \
{ \
if ((Ref) != KER_NULL) \
{ \
hal_sprintf(KER_CTX ar_ch___InfBuffer, sizeof(ar_ch___InfBuffer), "[%s] %s", (Ref), (Descr)); \
KER_SYS_ERROR(Err, KER_DBG_LEVEL_ERR, ar_ch___InfBuffer); \
} \
else \
KER_SYS_ERROR(Err, KER_DBG_LEVEL_ERR, (Descr)); \
} \
while (0)
KER_NULL
#define KER_NULL
Definition: emv_platform.h:80
KER_CTX
#define KER_CTX
Definition: emv_context.h:31
KER_SYS_ERROR
#define KER_SYS_ERROR(err_code, trace_level, comment)
Default "trace system error" macro (Release mode - without extra diagnostic info - for PCI)
Definition: hal_trace.h:565
KER_DBG_LEVEL_ERR
#define KER_DBG_LEVEL_ERR
Definition: emv_const.h:66

Default "trace outcome error" macro.

Redefine this macro to trace outcome error