37 # include <sys/time.h>
47 # define NFC_EXPORT __declspec(dllexport)
50 # define NFC_EXPORT __declspec(dllimport)
67 # ifndef __has_attribute
68 # define __has_attribute(x) 0
71 # if __has_attribute(nonnull) || defined(__GNUC__)
72 # define __has_attribute_nonnull 1
75 # if __has_attribute_nonnull
76 # define ATTRIBUTE_NONNULL( param ) __attribute__((nonnull (param)))
78 # define ATTRIBUTE_NONNULL( param )
83 # endif // __cplusplus
105 NFC_EXPORT
int nfc_initiator_deselect_target(
nfc_device *pnd);
136 NFC_EXPORT
void iso14443a_crc(uint8_t *pbtData,
size_t szLen, uint8_t *pbtCrc);
137 NFC_EXPORT
void iso14443a_crc_append(uint8_t *pbtData,
size_t szLen);
138 NFC_EXPORT
void iso14443b_crc(uint8_t *pbtData,
size_t szLen, uint8_t *pbtCrc);
139 NFC_EXPORT
void iso14443b_crc_append(uint8_t *pbtData,
size_t szLen);
140 NFC_EXPORT uint8_t *iso14443a_locate_historical_bytes(uint8_t *pbtAts,
size_t szAts,
size_t *pszTk);
156 #define NFC_SUCCESS 0
166 #define NFC_EINVARG -2
171 #define NFC_EDEVNOTSUPP -3
176 #define NFC_ENOTSUCHDEV -4
181 #define NFC_EOVFLOW -5
186 #define NFC_ETIMEOUT -6
191 #define NFC_EOPABORTED -7
196 #define NFC_ENOTIMPL -8
201 #define NFC_ETGRELEASED -10
206 #define NFC_ERFTRANS -20
211 #define NFC_EMFCAUTHFAIL -30
216 #define NFC_ESOFT -80
221 #define NFC_ECHIP -90
226 # endif // __cplusplus