36 # include <sys/time.h>
46 # define NFC_EXPORT __declspec(dllexport)
49 # define NFC_EXPORT __declspec(dllimport)
66 # ifndef __has_attribute
67 # define __has_attribute(x) 0
70 # if __has_attribute(nonnull) || defined(__GNUC__)
71 # define __has_attribute_nonnull 1
74 # if __has_attribute_nonnull
75 # define ATTRIBUTE_NONNULL( param ) __attribute__((nonnull (param)))
77 # define ATTRIBUTE_NONNULL( param )
82 # endif // __cplusplus
104 NFC_EXPORT
int nfc_initiator_deselect_target(
nfc_device *pnd);
135 NFC_EXPORT
void iso14443a_crc(uint8_t *pbtData,
size_t szLen, uint8_t *pbtCrc);
136 NFC_EXPORT
void iso14443a_crc_append(uint8_t *pbtData,
size_t szLen);
137 NFC_EXPORT uint8_t *iso14443a_locate_historical_bytes(uint8_t *pbtAts,
size_t szAts,
size_t *pszTk);
153 #define NFC_SUCCESS 0
163 #define NFC_EINVARG -2
168 #define NFC_EDEVNOTSUPP -3
173 #define NFC_ENOTSUCHDEV -4
178 #define NFC_EOVFLOW -5
183 #define NFC_ETIMEOUT -6
188 #define NFC_EOPABORTED -7
193 #define NFC_ENOTIMPL -8
198 #define NFC_ETGRELEASED -10
203 #define NFC_ERFTRANS -20
208 #define NFC_EMFCAUTHFAIL -30
213 #define NFC_ESOFT -80
218 #define NFC_ECHIP -90
223 # endif // __cplusplus