libnfc
1.4.2
|
00001 00024 #ifndef __NFC_DRIVER_ACR122_H__ 00025 # define __NFC_DRIVER_ACR122_H__ 00026 00027 # include <stdint.h> 00028 # include <stdbool.h> 00029 00030 00031 # include <nfc/nfc-types.h> 00032 00033 # define ACR122_DRIVER_NAME "ACR122" 00034 00035 nfc_device_desc_t *acr122_pick_device (void); 00036 bool acr122_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound); 00037 00038 // Functions used by developer to handle connection to this device 00039 nfc_device_t *acr122_connect (const nfc_device_desc_t * pndd); 00040 void acr122_disconnect (nfc_device_t * pnd); 00041 00042 // Callback function used by libnfc to transmit commands to the PN53X chip 00043 bool acr122_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTx, byte_t * pbtRx, 00044 size_t * pszRx); 00045 00046 // Various additional features this device supports 00047 char *acr122_firmware (const nfc_device_spec_t nds); 00048 bool acr122_led_red (const nfc_device_spec_t nds, bool bOn); 00049 00050 #endif // ! __NFC_DRIVER_ACR122_H__