libnfc  1.4.2
acr122.h
Go to the documentation of this file.
1 
24 #ifndef __NFC_DRIVER_ACR122_H__
25 # define __NFC_DRIVER_ACR122_H__
26 
27 # include <stdint.h>
28 # include <stdbool.h>
29 
30 
31 # include <nfc/nfc-types.h>
32 
33 # define ACR122_DRIVER_NAME "ACR122"
34 
35 nfc_device_desc_t *acr122_pick_device (void);
36 bool acr122_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound);
37 
38 // Functions used by developer to handle connection to this device
39 nfc_device_t *acr122_connect (const nfc_device_desc_t * pndd);
40 void acr122_disconnect (nfc_device_t * pnd);
41 
42 // Callback function used by libnfc to transmit commands to the PN53X chip
43 bool acr122_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTx, byte_t * pbtRx,
44  size_t * pszRx);
45 
46 // Various additional features this device supports
47 char *acr122_firmware (const nfc_device_spec_t nds);
48 bool acr122_led_red (const nfc_device_spec_t nds, bool bOn);
49 
50 #endif // ! __NFC_DRIVER_ACR122_H__