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

nfc_upi_lib.h
Go to the documentation of this file.
1 #ifndef NFC_UPI_LIB_H
2 #define NFC_UPI_LIB_H
3
4 /* *********************** NFC UPI KERNEL library export functions ************************* */
9 /* ***************************************************************************************** */
10
11 /* ************************************* upiNfcInit **************************************** */
27 extern KER_RES KER_API upiNfcInit(KER_CTX_INIT_PARAM const KER_VOID* pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR* pchKernelFiles, KER_INT16U usKernelFilesLen);
28
29 /* ************************************ upiNfcDeInit *************************************** */
40 extern KER_RES KER_API upiNfcDeInit(KER_CTX_SINGLE_PARAM);
41
42 /* ************************************* upiNfcVerInfo ************************************* */
54 extern KER_BOOL KER_API upiNfcVerInfo(KER_CTX_PARAM const KER_CHAR** ppchEmvVer, KER_INT16U* pusEmvVerLen, const KER_CHAR** ppchLibVer, KER_INT16U* pusLibVerLen);
55
56 /* ************************************** upiNfcTran *************************************** */
75 extern KER_RES KER_API upiNfcTran(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);
76
77 /* ********************************** upiNfcTranRelease ************************************ */
86 extern KER_BOOL KER_API upiNfcTranRelease(KER_CTX_PARAM KER_TRAN* pTran);
87
88 /* ************************************** upiNfcGetData ************************************ */
103 extern KER_RES KER_API upiNfcGetData(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, KER_BYTE* pbtData, KER_INT16U* pusDataLen);
104
105 /* *********************************** upiNfcGetDataByTag ********************************** */
123 extern KER_RES KER_API upiNfcGetDataByTag(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTag, KER_BYTE btTagSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
124
125 /* ********************************* upiNfcGetDataByTagList ******************************** */
142 extern KER_RES KER_API upiNfcGetDataByTagList(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTagList, KER_INT16U usTagListSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
143
144 /* ************************************* upiCheckOption ************************************ */
158 extern KER_BOOL KER_API upiCheckOption(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID* pParam);
159
160 #endif /* NFC_UPI_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
upiNfcGetDataByTagList
KER_RES KER_API upiNfcGetDataByTagList(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
upiNfcGetData
KER_RES KER_API upiNfcGetData(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, KER_BYTE *pbtData, KER_INT16U *pusDataLen)
Transaction data request.
upiNfcTran
KER_RES KER_API upiNfcTran(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.
upiNfcTranRelease
KER_BOOL KER_API upiNfcTranRelease(KER_CTX_PARAM KER_TRAN *pTran)
Releases NFC Transaction container structure.
upiNfcVerInfo
KER_BOOL KER_API upiNfcVerInfo(KER_CTX_PARAM const KER_CHAR **ppchEmvVer, KER_INT16U *pusEmvVerLen, const KER_CHAR **ppchLibVer, KER_INT16U *pusLibVerLen)
Obtains emv kernel library version info.
upiCheckOption
KER_BOOL KER_API upiCheckOption(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID *pParam)
Check options callback Define this function outside the lib to provide kernel options.
upiNfcGetDataByTag
KER_RES KER_API upiNfcGetDataByTag(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
upiNfcInit
KER_RES KER_API upiNfcInit(KER_CTX_INIT_PARAM const KER_VOID *pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR *pchKernelFiles, KER_INT16U usKernelFilesLen)
Performs kernel initialization.
upiNfcDeInit
KER_RES KER_API upiNfcDeInit(KER_CTX_SINGLE_PARAM)
Performs kernel de-initialization.
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_TRAN_DATA
EP Transaction data.
Definition: nfc_ep_data.h:221
tag_NFC_OUTCOME
Outcome User Interface struct definition, version 0.
Definition: nfc_outcome.h:350