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

Data Structures | Macros
NFC Entry Point data definitions

NFC EP structs & macros used to handle transaction by EP & Kernels. More...

## Data Structures
struct | tag_NFC_EP_PRE_DATA
| EP preprocessing data version 1. More...
struct | tag_NFC_EP_PPSE_DATA
| EP PPSE Card data used for certain combination. More...
struct | tag_NFC_EP_TRAN_DATA
| EP Transaction data. More...
struct | tag_NFC_EP_RESTART_DATA
| EP Transaction restart data. More...

## Macros
#define | NFC_EP_PRE_RESET(DATA, SIZE)
| EP preprocessing data reset macro definition. More...
#define | NFC_EP_PPSE_RESET(DATA, SIZE)
| EP PPSE data reset macro definition. More...
#define | NFC_EP_TRAN_DATA_RESET(DATA, SIZE)
| EP Tran data reset macro definition. More...
#define | NFC_EP_RESTART_DATA_RESET(DATA, SIZE)
| EP Tran data reset macro definition. More...
typedef struct tag_NFC_EP_PRE_DATA | NFC_EP_PRE_DATA
| EP preprocessing data version 1.
typedef struct tag_NFC_EP_PPSE_DATA | NFC_EP_PPSE_DATA
| EP PPSE Card data used for certain combination.
typedef struct tag_NFC_EP_TRAN_DATA | NFC_EP_TRAN_DATA
| EP Transaction data.
typedef struct tag_NFC_EP_RESTART_DATA | NFC_EP_RESTART_DATA
| EP Transaction restart data.
#define | NFC_CHECKSUM_BINARY 0x00
#define | NFC_CHECKSUM_CONFIG 0x01
#define | NFC_CHECKSUM_FULL_CONFIG 0x02
#define | NFC_EP_MASK_STATUS_CHECK 0x0001
#define | NFC_EP_MASK_ZERO_AMOUNT 0x0002
#define | NFC_EP_MASK_ZERO_AMOUNT_OFFLINE 0x0004
#define | NFC_EP_MASK_RDR_CLESS_LIMIT 0x0008
#define | NFC_EP_MASK_RDR_CLESS_FLOOR_LIMIT 0x0010
#define | NFC_EP_MASK_RDR_CVM_REQ_LIMIT 0x0020
#define | NFC_EP_MASK_TTQ 0x0040
#define | NFC_EP_MASK_EXT_SEL_SUPPORT 0x0080
#define | NFC_EP_PRE_STATUS_CHECK_REQUESTED 0x0001
| EP Preprocessing flags definitions (EMV Book A, Table 5-3) More...
#define | NFC_EP_PRE_CLESS_APP_NOT_ALLOWED 0x0002
#define | NFC_EP_PRE_ZERO_AMOUNT 0x0004
#define | NFC_EP_PRE_RDR_CVM_REQ_LIMIT_EXCEEDED 0x0008
#define | NFC_EP_PRE_RDR_CLESS_FLOOR_LIMIT_EXCEEDED 0x0010
#define | NFC_EP_PRE_VERSION 0x01
| EP preprocessing data struct version ID. More...
#define | NFC_EP_PPSE_VERSION 0x01
| EP Card PPSE data struct version ID. More...
#define | NFC_TRAN_EP_IND_EXT_SELECTION 0x0001
| EP Transaction indicators definitions. More...
#define | NFC_TRAN_EP_IND_EP_RESTART_FLAG 0x0002
#define | NFC_TRAN_EP_IND_CD_CVM_RESTART 0x0004
#define | NFC_EP_TRAN_DATA_VERSION 0x0001
| EP Tran data struct version ID. More...
#define | NFC_EP_RESTART_DATA_VERSION 0x0001
| EP Tran restart data struct version ID. More...

## Detailed Description

NFC EP structs & macros used to handle transaction by EP & Kernels.

## Macro Definition Documentation

## ◆ NFC_CHECKSUM_BINARY

#define NFC_CHECKSUM_BINARY 0x00

binary checksum

## ◆ NFC_CHECKSUM_CONFIG

#define NFC_CHECKSUM_CONFIG 0x01

config checksum

## ◆ NFC_CHECKSUM_FULL_CONFIG

#define NFC_CHECKSUM_FULL_CONFIG 0x02

full config checksum - with custom params

## ◆ NFC_EP_MASK_EXT_SEL_SUPPORT

#define NFC_EP_MASK_EXT_SEL_SUPPORT 0x0080

Extended Selection Support flag

## ◆ NFC_EP_MASK_RDR_CLESS_FLOOR_LIMIT

#define NFC_EP_MASK_RDR_CLESS_FLOOR_LIMIT 0x0010

Reader Contactless Floor Limit present flag

## ◆ NFC_EP_MASK_RDR_CLESS_LIMIT

#define NFC_EP_MASK_RDR_CLESS_LIMIT 0x0008

Reader Contactless Transaction Limit present flag

## ◆ NFC_EP_MASK_RDR_CVM_REQ_LIMIT

#define NFC_EP_MASK_RDR_CVM_REQ_LIMIT 0x0020

Reader CVM Required Limit present flag

## ◆ NFC_EP_MASK_STATUS_CHECK

#define NFC_EP_MASK_STATUS_CHECK 0x0001

EP configuration mask definitions Status Check Support flag

## ◆ NFC_EP_MASK_TTQ

#define NFC_EP_MASK_TTQ 0x0040

TTQ present flag

## ◆ NFC_EP_MASK_ZERO_AMOUNT

#define NFC_EP_MASK_ZERO_AMOUNT 0x0002

Zero Amount Allowed flag

## ◆ NFC_EP_MASK_ZERO_AMOUNT_OFFLINE

#define NFC_EP_MASK_ZERO_AMOUNT_OFFLINE 0x0004

Zero Amount for Offline Allowed flag

## ◆ NFC_EP_PPSE_RESET

#define NFC_EP_PPSE_RESET | ( |  | DATA,
|  |  | SIZE
| ) |  |

Value:
do \
{ \
KER_MEM_SET(DATA, SIZE, 0, SIZE); \
(DATA)->usSize = SIZE; \
(DATA)->btVersion = NFC_EP_PPSE_VERSION; \
} while (0)
NFC_EP_PPSE_VERSION
#define NFC_EP_PPSE_VERSION
EP Card PPSE data struct version ID.
Definition: nfc_ep_data.h:127

EP PPSE data reset macro definition.

## ◆ NFC_EP_PPSE_VERSION

#define NFC_EP_PPSE_VERSION 0x01

EP Card PPSE data struct version ID.

base version

## ◆ NFC_EP_PRE_CLESS_APP_NOT_ALLOWED

#define NFC_EP_PRE_CLESS_APP_NOT_ALLOWED 0x0002

Contactless Application Not Allowed

## ◆ NFC_EP_PRE_RDR_CLESS_FLOOR_LIMIT_EXCEEDED

#define NFC_EP_PRE_RDR_CLESS_FLOOR_LIMIT_EXCEEDED 0x0010

Reader Contactless Floor Limit Exceeded

## ◆ NFC_EP_PRE_RDR_CVM_REQ_LIMIT_EXCEEDED

#define NFC_EP_PRE_RDR_CVM_REQ_LIMIT_EXCEEDED 0x0008

Reader CVM Required Limit Exceeded

## ◆ NFC_EP_PRE_RESET

#define NFC_EP_PRE_RESET | ( |  | DATA,
|  |  | SIZE
| ) |  |

Value:
do \
{ \
KER_MEM_SET(DATA, SIZE, 0, SIZE); \
(DATA)->usSize = SIZE; \
(DATA)->btVersion = NFC_EP_PRE_VERSION; \
(DATA)->pConfigData = KER_NULL; \
(DATA)->pTranData = KER_NULL; \
} while (0)
KER_NULL
#define KER_NULL
Definition: emv_platform.h:80
NFC_EP_PRE_VERSION
#define NFC_EP_PRE_VERSION
EP preprocessing data struct version ID.
Definition: nfc_ep_data.h:65

EP preprocessing data reset macro definition.

## ◆ NFC_EP_PRE_STATUS_CHECK_REQUESTED

#define NFC_EP_PRE_STATUS_CHECK_REQUESTED 0x0001

EP Preprocessing flags definitions (EMV Book A, Table 5-3)

Status Check Requested

## ◆ NFC_EP_PRE_VERSION

#define NFC_EP_PRE_VERSION 0x01

EP preprocessing data struct version ID.

version info added...

## ◆ NFC_EP_PRE_ZERO_AMOUNT

#define NFC_EP_PRE_ZERO_AMOUNT 0x0004

Zero Amount

## ◆ NFC_EP_RESTART_DATA_RESET

#define NFC_EP_RESTART_DATA_RESET | ( |  | DATA,
|  |  | SIZE
| ) |  |

Value:
do \
{ \
KER_MEM_SET(DATA, SIZE, 0, SIZE); \
(DATA)->usSize = SIZE; \
(DATA)->btVersion = NFC_EP_RESTART_DATA_VERSION; \
(DATA)->btEpStart = NFC_OUTCOME_START_TYPE_NA; \
} while (0)
NFC_EP_RESTART_DATA_VERSION
#define NFC_EP_RESTART_DATA_VERSION
EP Tran restart data struct version ID.
Definition: nfc_ep_data.h:260
NFC_OUTCOME_START_TYPE_NA
#define NFC_OUTCOME_START_TYPE_NA
Outcome start types definitions.
Definition: nfc_outcome.h:233

EP Tran data reset macro definition.

## ◆ NFC_EP_RESTART_DATA_VERSION

#define NFC_EP_RESTART_DATA_VERSION 0x0001

EP Tran restart data struct version ID.

base version

## ◆ NFC_EP_TRAN_DATA_RESET

#define NFC_EP_TRAN_DATA_RESET | ( |  | DATA,
|  |  | SIZE
| ) |  |

Value:
do \
{ \
KER_MEM_SET(DATA, SIZE, 0, SIZE); \
(DATA)->usSize = SIZE; \
(DATA)->btVersion = NFC_EP_TRAN_DATA_VERSION; \
(DATA)->pTermTranData = KER_NULL; \
(DATA)->pTermTranDataTLV = KER_NULL; \
(DATA)->pbt84 = KER_NULL; \
(DATA)->pbtCPLC = KER_NULL; \
(DATA)->btEpStart = NFC_OUTCOME_START_TYPE_NA; \
} while (0)
NFC_EP_TRAN_DATA_VERSION
#define NFC_EP_TRAN_DATA_VERSION
EP Tran data struct version ID.
Definition: nfc_ep_data.h:187

EP Tran data reset macro definition.

## ◆ NFC_EP_TRAN_DATA_VERSION

#define NFC_EP_TRAN_DATA_VERSION 0x0001

EP Tran data struct version ID.

base version

## ◆ NFC_TRAN_EP_IND_CD_CVM_RESTART

#define NFC_TRAN_EP_IND_CD_CVM_RESTART 0x0004

Transaction restarted by CD-CVM request, EMV Book C-4, 8.2.4.1

## ◆ NFC_TRAN_EP_IND_EP_RESTART_FLAG

#define NFC_TRAN_EP_IND_EP_RESTART_FLAG 0x0002

EP restart flag

## ◆ NFC_TRAN_EP_IND_EXT_SELECTION

#define NFC_TRAN_EP_IND_EXT_SELECTION 0x0001

EP Transaction indicators definitions.

Extended selection used