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

nfc_visa_lib.h
Go to the documentation of this file.
1 #ifndef NFC_VISA_LIB_H
2 #define NFC_VISA_LIB_H
3
4 /* *********************** NFC VISA KERNEL library export functions ************************ */
9 /* ***************************************************************************************** */
10
11 /* ************************************* visaNfcInit *************************************** */
27 extern KER_RES KER_API visaNfcInit(KER_CTX_INIT_PARAM const KER_VOID* pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR* pchKernelFiles, KER_INT16U usKernelFilesLen);
28
29 /* ************************************ visaNfcDeInit ************************************** */
40 extern KER_RES KER_API visaNfcDeInit(KER_CTX_SINGLE_PARAM);
41
42 /* ************************************* visaNfcVerInfo ************************************ */
54 extern KER_BOOL KER_API visaNfcVerInfo(KER_CTX_PARAM const KER_CHAR** ppchEmvVer, KER_INT16U* pusEmvVerLen, const KER_CHAR** ppchLibVer, KER_INT16U* pusLibVerLen);
55
56 /* ************************************** visaNfcTran ************************************** */
75 extern KER_RES KER_API visaNfcTran(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 /* ********************************* visaNfcTranIssUpdate ********************************** */
93 extern KER_RES KER_API visaNfcTranIssUpdate(KER_CTX_PARAM KER_TRAN* pTran, const NFC_EP_RESTART_DATA* pEpRestartData, const NFC_EXT_TERM_RESTART_DATA* pTermRestartData, NFC_OUTCOME** ppOutcome);
94
95 /* ********************************** visaNfcTranRelease *********************************** */
104 extern KER_BOOL KER_API visaNfcTranRelease(KER_CTX_PARAM KER_TRAN* pTran);
105
106 /* ************************************** visaNfcGetData *********************************** */
121 extern KER_RES KER_API visaNfcGetData(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, KER_BYTE* pbtData, KER_INT16U* pusDataLen);
122
123 /* *********************************** visaNfcGetDataByTag ********************************* */
141 extern KER_RES KER_API visaNfcGetDataByTag(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTag, KER_BYTE btTagSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
142
143 /* ********************************* visaNfcGetDataByTagList ******************************* */
160 extern KER_RES KER_API visaNfcGetDataByTagList(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOptions, const KER_BYTE* pbtTagList, KER_INT16U usTagListSize, KER_BYTE* pbtData, KER_INT16U* pusDataSize);
161
162 /* ************************************ visaCheckOption ************************************ */
176 extern KER_BOOL KER_API visaCheckOption(KER_CTX_PARAM KER_TRAN* pTran, KER_INT16U usOption, KER_INT16U usParam, KER_VOID* pParam);
177
178 #endif /* NFC_VISA_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
visaNfcDeInit
KER_RES KER_API visaNfcDeInit(KER_CTX_SINGLE_PARAM)
Performs kernel de-initialization.
visaNfcVerInfo
KER_BOOL KER_API visaNfcVerInfo(KER_CTX_PARAM const KER_CHAR **ppchEmvVer, KER_INT16U *pusEmvVerLen, const KER_CHAR **ppchLibVer, KER_INT16U *pusLibVerLen)
Obtains emv kernel library version info.
visaNfcGetDataByTagList
KER_RES KER_API visaNfcGetDataByTagList(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
visaCheckOption
KER_BOOL KER_API visaCheckOption(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.
visaNfcTranRelease
KER_BOOL KER_API visaNfcTranRelease(KER_CTX_PARAM KER_TRAN *pTran)
Releases NFC Transaction container structure.
visaNfcTranIssUpdate
KER_RES KER_API visaNfcTranIssUpdate(KER_CTX_PARAM KER_TRAN *pTran, const NFC_EP_RESTART_DATA *pEpRestartData, const NFC_EXT_TERM_RESTART_DATA *pTermRestartData, NFC_OUTCOME **ppOutcome)
Process issuer update request.
visaNfcGetData
KER_RES KER_API visaNfcGetData(KER_CTX_PARAM KER_TRAN *pTran, KER_INT16U usOptions, KER_BYTE *pbtData, KER_INT16U *pusDataLen)
Transaction data request.
visaNfcTran
KER_RES KER_API visaNfcTran(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 bprocessing by kernel.
visaNfcInit
KER_RES KER_API visaNfcInit(KER_CTX_INIT_PARAM const KER_VOID *pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR *pchKernelFiles, KER_INT16U usKernelFilesLen)
Performs kernel initialization.
visaNfcGetDataByTag
KER_RES KER_API visaNfcGetDataByTag(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
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