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

t_nfc_ep_err.h
Go to the documentation of this file.
1 #ifndef T_NFC_EP_ERR_H
2 #define T_NFC_EP_ERR_H
3
4 /* ************************* T-NFC Entry Point error definitions *************************** */
8 /* ***************************************************************************************** */
9
10 /* ****************************** Internal Errors used in code ***************************** */
18 /* ***************************************************************************************** */
19 #define T_NFC_EP_OK 0x0000
20 /* ************************************ Common Info Codes ********************************** */
21 #define T_NFC_EP_INF 0x03A0
22 #define T_NFC_EP_INF_NO_DATA T_NFC_EP_INF + 0x01
23 #define T_NFC_EP_INF_OUTCOME T_NFC_EP_INF + 0x02
24 #define T_NFC_EP_INF_CANCELLED T_NFC_EP_INF + 0x03
25 #define T_NFC_EP_INF_POLLING_TIMEOUT T_NFC_EP_INF + 0x04
26 #define T_NFC_EP_INF_REMOVAL_TIMEOUT T_NFC_EP_INF + 0x05
27 #define T_NFC_EP_INF_SKIPPED T_NFC_EP_INF + 0x06
28 #define T_NFC_EP_INF_EXT_PROCESSING T_NFC_EP_INF + 0x07
29 #define T_NFC_EP_INF_FIELDOFF_TIMEOUT T_NFC_EP_INF + 0x08
30 /* ***************************************************************************************** */
31
32 /* *************************************** t_nfc_epInit ************************************ */
33 #define T_NFC_EP_INIT 0x7700
34 #define T_NFC_EP_INIT_INV_PARAM T_NFC_EP_INIT + 0x01
35 #define T_NFC_EP_INIT_INV_CLB_VER T_NFC_EP_INIT + 0x02
36 #define T_NFC_EP_INIT_INV_CLB_SIZE T_NFC_EP_INIT + 0x03
37 #define T_NFC_EP_INIT_INV_MEM_CLB T_NFC_EP_INIT + 0x04
38 #define T_NFC_EP_INIT_MEM_ALLOC T_NFC_EP_INIT + 0x05
39 #define T_NFC_EP_INIT_LIB_INIT T_NFC_EP_INIT + 0x06
40 #define T_NFC_EP_INIT_HAL_LICENSE T_NFC_EP_INIT + 0x07
41 #define T_NFC_EP_INIT_HAL_CHECKSUM T_NFC_EP_INIT + 0x08
43 /* ************************************* t_nfc_epDeinit ************************************ */
44 #define T_NFC_EP_DEINIT 0x7710
45 #define T_NFC_EP_DEINIT_INV_PARAM T_NFC_EP_DEINIT + 0x01
46 #define T_NFC_EP_DEINIT_TRAN_RELEASE T_NFC_EP_DEINIT + 0x02
47 #define T_NFC_EP_DEINIT_LIB_DEINIT T_NFC_EP_DEINIT + 0x03
48 #define T_NFC_EP_DEINIT_MEM_FREE T_NFC_EP_DEINIT + 0x04
49 #define T_NFC_EP_DEINIT_MEM_CLB T_NFC_EP_DEINIT + 0x05
51 /* ************************************ t_nfc_epVersion ************************************ */
52 #define T_NFC_EP_VERSION 0x7720
53 #define T_NFC_EP_VERSION_INV_PARAM T_NFC_EP_VERSION + 0x01
54 #define T_NFC_EP_VERSION_UNSUPP T_NFC_EP_VERSION + 0x02
55 #define T_NFC_EP_VERSION_LIB_ERR T_NFC_EP_VERSION + 0x03
56 #define T_NFC_EP_VERSION_LENGTH T_NFC_EP_VERSION + 0x04
58 /* ************************************ t_nfc_epChecksum *********************************** */
59 #define T_NFC_EP_CHECKSUM 0x7730
60 #define T_NFC_EP_CHECKSUM_INV_PARAM T_NFC_EP_CHECKSUM + 0x01
61 #define T_NFC_EP_CHECKSUM_UNSUPP T_NFC_EP_CHECKSUM + 0x02
62 #define T_NFC_EP_CHECKSUM_LIB_CALC T_NFC_EP_CHECKSUM + 0x03
64 /* ******************************** t_nfc_epPrepareNewTran ********************************* */
65 #define T_NFC_EP_PREPARE 0x7740
66 #define T_NFC_EP_PREPARE_INV_PARAM T_NFC_EP_PREPARE + 0x01
67 #define T_NFC_EP_PREPARE_RELEASE T_NFC_EP_PREPARE + 0x02
68 #define T_NFC_EP_PREPARE_FAILURE T_NFC_EP_PREPARE + 0x03
70 /* ************************************ t_nfc_epNewTran ************************************ */
71 #define T_NFC_EP_NEW_TRAN 0x7750
72 #define T_NFC_EP_NEW_TRAN_INV_PARAM T_NFC_EP_NEW_TRAN + 0x01
73 #define T_NFC_EP_NEW_TRAN_INV_SEQ T_NFC_EP_NEW_TRAN + 0x02
74 #define T_NFC_EP_NEW_TRAN_HAL_TRACE T_NFC_EP_NEW_TRAN + 0x03
75 #define T_NFC_EP_NEW_TRAN_FAILURE T_NFC_EP_NEW_TRAN + 0x04
77 /* ********************************** t_nfc_epTranRestart ********************************** */
78 #define T_NFC_EP_TRAN_RESTART 0x7760
79 #define T_NFC_EP_TRAN_RESTART_INV_PARAM T_NFC_EP_TRAN_RESTART + 0x01
80 #define T_NFC_EP_TRAN_RESTART_INV_SEQ T_NFC_EP_TRAN_RESTART + 0x02
81 #define T_NFC_EP_TRAN_RESTART_FAILURE T_NFC_EP_TRAN_RESTART + 0x03
83 /* ********************************** t_nfc_epTranRelease ********************************** */
84 #define T_NFC_EP_TR_RELEASE 0x7770
85 #define T_NFC_EP_TR_RELEASE_INV_PARAM T_NFC_EP_TR_RELEASE + 0x01
86 #define T_NFC_EP_TR_RELEASE_RELEASE_TRAN T_NFC_EP_TR_RELEASE + 0x02
88 /* ************************************ t_nfc_epGetData ************************************ */
89 #define T_NFC_EP_GET_DATA 0x7780
90 #define T_NFC_EP_GET_DATA_INV_PARAM T_NFC_EP_GET_DATA + 0x01
91 #define T_NFC_EP_GET_DATA_INV_SEQ T_NFC_EP_GET_DATA + 0x02
92 #define T_NFC_EP_GET_DATA_FAILED T_NFC_EP_GET_DATA + 0x03
94 /* ********************************** t_nfc_epGetDataByTag ********************************* */
95 #define T_NFC_EP_GET_DATA_BY_TAG 0x7790
96 #define T_NFC_EP_GET_DATA_BY_TAG_INV_PARAM T_NFC_EP_GET_DATA_BY_TAG + 0x01
97 #define T_NFC_EP_GET_DATA_BY_TAG_INV_SEQ T_NFC_EP_GET_DATA_BY_TAG + 0x02
98 #define T_NFC_EP_GET_DATA_BY_TAG_FAILED T_NFC_EP_GET_DATA_BY_TAG + 0x03
100 /* ******************************** t_nfc_epGetDataByTagList ******************************* */
101 #define T_NFC_EP_GET_DATA_BY_TAG_LIST 0x77A0
102 #define T_NFC_EP_GET_DATA_BY_TAG_LIST_INV_PARAM T_NFC_EP_GET_DATA_BY_TAG_LIST + 0x01
103 #define T_NFC_EP_GET_DATA_BY_TAG_LIST_INV_SEQ T_NFC_EP_GET_DATA_BY_TAG_LIST + 0x02
104 #define T_NFC_EP_GET_DATA_BY_TAG_LIST_FAILED T_NFC_EP_GET_DATA_BY_TAG_LIST + 0x03
106 /* ********************************** t_nfc_epGetDataByID ********************************** */
107 #define T_NFC_EP_GET_DATA_BY_ID 0x77B0
108 #define T_NFC_EP_GET_DATA_BY_ID_INV_PARAM T_NFC_EP_GET_DATA_BY_ID + 0x01
109 #define T_NFC_EP_GET_DATA_BY_ID_FAILED T_NFC_EP_GET_DATA_BY_ID + 0x02
111 /* ******************************** t_nfc_epGetCustomTagByID ******************************* */
112 #define T_NFC_EP_GET_CUSTOM_TAG_BY_ID 0x77C0
113 #define T_NFC_EP_GET_CUSTOM_TAG_BY_ID_INV_PARAM T_NFC_EP_GET_CUSTOM_TAG_BY_ID + 0x01
115 /* ******************************* t_nfc_epRegisterCallback ******************************** */
116 #define T_NFC_EP_REG_CALLBACK 0x77D0
117 #define T_NFC_EP_REG_CALLBACK_INV_PARAM T_NFC_EP_REG_CALLBACK + 0x01
118 #define T_NFC_EP_REG_CALLBACK_INV_HAL_CONTEXT T_NFC_EP_REG_CALLBACK + 0x02
119 #define T_NFC_EP_REG_CALLBACK_INV_HAL_PARAM T_NFC_EP_REG_CALLBACK + 0x03
120 #define T_NFC_EP_REG_CALLBACK_NOT_SET T_NFC_EP_REG_CALLBACK + 0x04
122 /* ******************************** t_nfc_epRegisterKernel ********************************* */
123 #define T_NFC_EP_REG_KERNEL 0x7800
124 #define T_NFC_EP_REG_KERNEL_INV_PARAM T_NFC_EP_REG_KERNEL + 0x01
125 #define T_NFC_EP_REG_KERNEL_MEM_ALLOC T_NFC_EP_REG_KERNEL + 0x02
127 /* ********************************* t_int_epGetKernelAPI ********************************** */
128 #define T_NFC_EP_GET_KERNEL_API 0x7810
129 #define T_NFC_EP_GET_KERNEL_API_INV_PARAM T_NFC_EP_GET_KERNEL_API + 0x01
130 #define T_NFC_EP_GET_KERNEL_API_NOT_FOUND T_NFC_EP_GET_KERNEL_API + 0x02
132 /* ******************************** epKer... common errors ********************************* */
133 #define T_NFC_EP_KER_FUNC 0x7820
134 #define T_NFC_EP_KER_FUNC_KERNEL_NOT_FOUND T_NFC_EP_KER_FUNC + 0x01
135 #define T_NFC_EP_KER_FUNC_FUNCTION_NOT_FOUND T_NFC_EP_KER_FUNC + 0x02
136 #define T_NFC_EP_KER_FUNC_FUNCTION_FAILED T_NFC_EP_KER_FUNC + 0x03
138 /* ***************************************************************************************** */
139
143 #endif /* T_NFC_KER_ERR_H */