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

t_nfc_user_clb.h
Go to the documentation of this file.
1 #ifndef T_NFC_USER_CLB_H
2 #define T_NFC_USER_CLB_H
3
4 /* ***************************** T_NFC user callback interface ***************************** */
8 /* ***************************************************************************************** */
9
10 /* set struct alignment */
11 #include <emv_platform_set_align.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18 /* ***************************************************************************************** */
24 /* ***************************** NUM_T_NFC_USER_CALLBACK_HANDLE **************************** */
28 #define NUM_T_NFC_USER_CALLBACK_HANDLE 200
29
30 /* *********************** T_NFC_USER_CALLBACK_DE_DATA_FROM_KERNEL ************************ */
34 #define NUM_T_NFC_USER_CALLBACK_DE_DATA_FROM_KERNEL 201
48 typedef KER_BOOL (KER_API *T_NFC_USER_CALLBACK_DE_DATA_FROM_KERNEL)(KER_VOID* pCallbackHandle, const KER_BYTE* pbtData, KER_INT16U usDataLen);
49
50
51 /* *********************** T_NFC_USER_CALLBACK_DE_DATA_FROM_TERMINAL *********************** */
55 #define NUM_T_NFC_USER_CALLBACK_DE_DATA_FROM_TERMINAL 202
60 #define T_NFC_USER_CALLBACK_DE_RES_OK 0x0000
61 #define T_NFC_USER_CALLBACK_DE_RES_TIMEOUT 0x0001
62 #define T_NFC_USER_CALLBACK_DE_RES_NO_DATA 0x0002
63 #define T_NFC_USER_CALLBACK_DE_RES_FAIL 0x0003
85 typedef KER_INT16U (KER_API *T_NFC_USER_CALLBACK_DE_DATA_FROM_TERMINAL)(KER_VOID* pCallbackHandle, KER_INT16U usTimeout, KER_INT16U usParam, KER_VOID* pParam, KER_BYTE** ppbtData, KER_INT16U* pusDataLen);
86
87
88 /* ************************** T_NFC_USER_CALLBACK_DE_DATA_RELEASE ************************** */
92 #define NUM_T_NFC_USER_CALLBACK_DE_DATA_RELEASE 203
106 typedef KER_BOOL (KER_API *T_NFC_USER_CALLBACK_DE_DATA_RELEASE)(KER_VOID* pCallbackHandle, KER_BYTE* pbtData, KER_INT16U usDataLen);
107
108
109 /* ********************* T_NFC_USER_CALLBACK_UI_SCHEDULE_CHANGE_REQUEST ******************** */
112 #define NUM_T_NFC_USER_CALLBACK_UI_SCHEDULE_CHANGE_REQUEST 210
125 typedef KER_INT16U (KER_API* T_NFC_USER_CALLBACK_UI_SCHEDULE_CHANGE_REQUEST)(KER_VOID* pCallbackHandle, KER_INT32U ulDelayTime, const NFC_OUTCOME_UI* pUI);
126
127
128 /* ********************* T_NFC_USER_CALLBACK_UI_CANCEL_CHANGE_REQUEST ********************** */
131 #define NUM_T_NFC_USER_CALLBACK_UI_CANCEL_CHANGE_REQUEST 211
144 typedef KER_BOOL (KER_API* T_NFC_USER_CALLBACK_UI_CANCEL_CHANGE_REQUEST)(KER_VOID* pCallbackHandle, KER_INT16U usRequestID);
145
146
147 /* *************************** T_NFC_USER_CALLBACK_ONLINE_CHECK **************************** */
150 #define NUM_T_NFC_USER_CALLBACK_ONLINE_CHECK 220
151
160 typedef KER_BOOL (KER_API *T_NFC_USER_CALLBACK_ONLINE_CHECK)(KER_VOID* pCallbackHandle);
161
162
163 #ifdef __cplusplus
164 }
165 #endif
166
167 /* restore struct alignment */
168 #include <emv_platform_restore_align.h>
169
170 #endif /* T_NFC_USER_CLB_H */
emv_platform_restore_align.h
emv_platform_set_align.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_INT32U
unsigned int KER_INT32U
Definition: emv_platform.h:63
KER_INT16U
unsigned short KER_INT16U
Definition: emv_platform.h:61
T_NFC_USER_CALLBACK_UI_CANCEL_CHANGE_REQUEST
KER_BOOL(KER_API * T_NFC_USER_CALLBACK_UI_CANCEL_CHANGE_REQUEST)(KER_VOID *pCallbackHandle, KER_INT16U usRequestID)
Cancel prev. scheduled async change User Interface request.
Definition: t_nfc_user_clb.h:144
T_NFC_USER_CALLBACK_UI_SCHEDULE_CHANGE_REQUEST
KER_INT16U(KER_API * T_NFC_USER_CALLBACK_UI_SCHEDULE_CHANGE_REQUEST)(KER_VOID *pCallbackHandle, KER_INT32U ulDelayTime, const NFC_OUTCOME_UI *pUI)
Schedule async change User Interface request.
Definition: t_nfc_user_clb.h:125
T_NFC_USER_CALLBACK_DE_DATA_RELEASE
KER_BOOL(KER_API * T_NFC_USER_CALLBACK_DE_DATA_RELEASE)(KER_VOID *pCallbackHandle, KER_BYTE *pbtData, KER_INT16U usDataLen)
Callback type for data exchange.
Definition: t_nfc_user_clb.h:106
T_NFC_USER_CALLBACK_ONLINE_CHECK
KER_BOOL(KER_API * T_NFC_USER_CALLBACK_ONLINE_CHECK)(KER_VOID *pCallbackHandle)
Checks for unable to go online condition (for AmEx C-4).
Definition: t_nfc_user_clb.h:160
T_NFC_USER_CALLBACK_DE_DATA_FROM_TERMINAL
KER_INT16U(KER_API * T_NFC_USER_CALLBACK_DE_DATA_FROM_TERMINAL)(KER_VOID *pCallbackHandle, KER_INT16U usTimeout, KER_INT16U usParam, KER_VOID *pParam, KER_BYTE **ppbtData, KER_INT16U *pusDataLen)
Callback type for data exchange.
Definition: t_nfc_user_clb.h:85
T_NFC_USER_CALLBACK_DE_DATA_FROM_KERNEL
KER_BOOL(KER_API * T_NFC_USER_CALLBACK_DE_DATA_FROM_KERNEL)(KER_VOID *pCallbackHandle, const KER_BYTE *pbtData, KER_INT16U usDataLen)
Callback type for data exchange to pass card/kernel data to terminal.
Definition: t_nfc_user_clb.h:48
tag_NFC_OUTCOME_UI
Outcome User Interface struct definition, version 0.
Definition: nfc_outcome.h:152