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

nfc_ker_lib.h
Go to the documentation of this file.
1 #ifndef NFC_KER_LIB_H
2 #define NFC_KER_LIB_H
3
4 /* ************************* NFC KERNEL library export functions *************************** */
8 /* ***************************************************************************************** */
9
10 /* ************************* NFC Kernel library export functions *************************** */
19 /* ***************************************************************************************** */
20
21 typedef struct tag_KER_TRAN KER_TRAN;
22
23
24 /* ********************************* F_NFC_KER_CHECK_OPT *********************************** */
29 #define NFC_KER_OPT_DEBUG 0x0001
30 #define NFC_KER_OPT_RRP 0x0002
31 #define NFC_KER_OPT_BIN_RANGE 0x0004
45 typedef KER_BOOL (KER_API *F_NFC_KER_CHECK_OPT)(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID* pParam);
46
47
48 /* ************************************** nfcInit ****************************************** */
64 typedef KER_RES(KER_API *F_NFC_KER_INIT)(KER_CTX_INIT_PARAM const KER_VOID* pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR* pchKernelFiles, KER_INT16U usKernelFilesLen);
65
66
67 /* ************************************* nfcDeInit ***************************************** */
78 typedef KER_RES(KER_API *F_NFC_KER_DEINIT)(KER_CTX_SINGLE_PARAM);
79
80
81 /* ************************************** nfcVerInfo *************************************** */
93 typedef KER_BOOL(KER_API *F_NFC_KER_VERINFO)(KER_CTX_PARAM KER_CHAR** ppchEmvVer, KER_INT16U* pusEmvVerLen, KER_CHAR** ppchLibVer, KER_INT16U* pusLibVerLen);
94
95
96 /* *********************************** nfcTranPreprocess *********************************** */
108 typedef KER_RES(KER_API *F_NFC_KER_TRAN_PREPROCESS)(KER_CTX_PARAM KER_INT16U usOptions, const NFC_EP_PRE_DATA* pEpPRE);
109
110
111 /* ************************************* nfcTranStart ************************************** */
129 typedef KER_RES(KER_API *F_NFC_KER_TRAN_START)(KER_CTX_PARAM const NFC_EP_PRE_DATA* pEpPRE, const NFC_EP_PPSE_DATA* pEpPPSE, const NFC_EP_TRAN_DATA* pEpTranData, KER_TRAN** ppTran, NFC_OUTCOME** ppOutcome);
130
131
132 /* ************************************ nfcTranIssUpdate *********************************** */
149 typedef KER_RES(KER_API *F_NFC_KER_TRAN_ISS_UPDATE)(KER_CTX_PARAM KER_TRAN* pTran, const NFC_EP_RESTART_DATA* pEpRestartData, const NFC_EXT_TERM_RESTART_DATA* pTermRestartData, NFC_OUTCOME** ppOutcome);
150
151
152 /* *********************************** nfcTranRelease ************************************** */
161 typedef KER_BOOL(KER_API *F_NFC_KER_TRAN_RELEASE)(KER_CTX_PARAM KER_TRAN* pTran);
162
163
164 /* *************************************** nfcGetData ************************************** */
179 typedef KER_RES(KER_API *F_NFC_KER_GET_DATA)(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, KER_BYTE* pbtData, KER_INT16U* pusDataLen);
180
181
182 /* ************************************ nfcGetDataByTag ************************************ */
185 #define NFC_GET_DATA_OPT_CUST 0x0001
186 #define NFC_GET_DATA_OPT_SKIP_STD_PROC 0x0002
205 typedef KER_RES(KER_API *F_NFC_KER_GET_DATA_BY_TAG)(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTag, KER_BYTE btTagSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
206
207
208 /* ********************************** nfcGetDataByTagList ********************************** */
225 typedef KER_RES(KER_API *F_NFC_KER_GET_DATA_BY_TAG_LIST)(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTagList, KER_INT16U usTagListSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
226
227
228 #endif /* NFC_KER_LIB_H */
KER_VOID
void KER_VOID
Definition: emv_platform.h:66
KER_BOOL
KER_INT8U KER_BOOL
Definition: emv_platform.h:67
KER_BYTE
uint8_t KER_BYTE
Definition: emv_platform.h:70
KER_RES
KER_INT16U KER_RES
Definition: emv_platform.h:68
KER_INT16U
unsigned short KER_INT16U
Definition: emv_platform.h:61
KER_CHAR
char KER_CHAR
Definition: emv_platform.h:65
KER_CTX_PARAM
#define KER_CTX_PARAM
Definition: emv_context.h:53
KER_CTX_INIT_PARAM
#define KER_CTX_INIT_PARAM
Definition: emv_context.h:63
KER_CTX_SINGLE_PARAM
#define KER_CTX_SINGLE_PARAM
Definition: emv_context.h:58
KER_TRAN
struct tag_KER_TRAN KER_TRAN
Kernel internal transaction data structure.
Definition: emv_data.h:251
F_NFC_KER_GET_DATA_BY_TAG_LIST
KER_RES(KER_API * F_NFC_KER_GET_DATA_BY_TAG_LIST)(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, const KER_BYTE *pbtTagList, KER_INT16U usTagListSize, KER_BYTE *pbtData, KER_INT16U *pusDataSize)
transaction data request
Definition: nfc_ker_lib.h:225
F_NFC_KER_GET_DATA_BY_TAG
KER_RES(KER_API * F_NFC_KER_GET_DATA_BY_TAG)(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, const KER_BYTE *pbtTag, KER_BYTE btTagSize, KER_BYTE *pbtData, KER_INT16U *pusDataSize)
transaction data request
Definition: nfc_ker_lib.h:205
F_NFC_KER_CHECK_OPT
KER_BOOL(KER_API * F_NFC_KER_CHECK_OPT)(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID *pParam)
Checks kernel option callback.
Definition: nfc_ker_lib.h:45
F_NFC_KER_INIT
KER_RES(KER_API * F_NFC_KER_INIT)(KER_CTX_INIT_PARAM const KER_VOID *pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR *pchKernelFiles, KER_INT16U usKernelFilesLen)
Performs kernel initialization.
Definition: nfc_ker_lib.h:64
F_NFC_KER_TRAN_START
KER_RES(KER_API * F_NFC_KER_TRAN_START)(KER_CTX_PARAM const NFC_EP_PRE_DATA *pEpPRE, const NFC_EP_PPSE_DATA *pEpPPSE, const NFC_EP_TRAN_DATA *pEpTranData, KER_TRAN **ppTran, NFC_OUTCOME **ppOutcome)
Initiates transaction processing by kernel.
Definition: nfc_ker_lib.h:129
F_NFC_KER_GET_DATA
KER_RES(KER_API * F_NFC_KER_GET_DATA)(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, KER_BYTE *pbtData, KER_INT16U *pusDataLen)
Transaction data request.
Definition: nfc_ker_lib.h:179
F_NFC_KER_TRAN_ISS_UPDATE
KER_RES(KER_API * F_NFC_KER_TRAN_ISS_UPDATE)(KER_CTX_PARAM KER_TRAN *pTran, const NFC_EP_RESTART_DATA *pEpRestartData, const NFC_EXT_TERM_RESTART_DATA *pTermRestartData, NFC_OUTCOME **ppOutcome)
Initiates transaction bprocessing by kernel.
Definition: nfc_ker_lib.h:149
F_NFC_KER_TRAN_RELEASE
KER_BOOL(KER_API * F_NFC_KER_TRAN_RELEASE)(KER_CTX_PARAM KER_TRAN *pTran)
Releases NFC Transaction container structure.
Definition: nfc_ker_lib.h:161
F_NFC_KER_TRAN_PREPROCESS
KER_RES(KER_API * F_NFC_KER_TRAN_PREPROCESS)(KER_CTX_PARAM KER_INT16U usOptions, const NFC_EP_PRE_DATA *pEpPRE)
Makes transaction preprocessing by kernel (optional)
Definition: nfc_ker_lib.h:108
F_NFC_KER_VERINFO
KER_BOOL(KER_API * F_NFC_KER_VERINFO)(KER_CTX_PARAM KER_CHAR **ppchEmvVer, KER_INT16U *pusEmvVerLen, KER_CHAR **ppchLibVer, KER_INT16U *pusLibVerLen)
Obtains emv kernel library version info.
Definition: nfc_ker_lib.h:93
F_NFC_KER_DEINIT
KER_RES(KER_API * F_NFC_KER_DEINIT)(KER_CTX_SINGLE_PARAM)
Performs kernel de-initialization.
Definition: nfc_ker_lib.h:78
tag_NFC_EP_PPSE_DATA
EP PPSE Card data used for certain combination.
Definition: nfc_ep_data.h:153
tag_NFC_EP_PRE_DATA
EP preprocessing data version 1.
Definition: nfc_ep_data.h:92
tag_NFC_EP_RESTART_DATA
EP Transaction restart data.
Definition: nfc_ep_data.h:287
tag_NFC_EP_TRAN_DATA
EP Transaction data.
Definition: nfc_ep_data.h:221
tag_NFC_EXT_TERM_RESTART_DATA
Terminal transaction restart data.
Definition: nfc_ext_data.h:144
tag_NFC_OUTCOME
Outcome User Interface struct definition, version 0.
Definition: nfc_outcome.h:350