libnfc  1.4.2
pn532_uart.h
Go to the documentation of this file.
1 
24 #ifndef __NFC_DRIVER_PN532_UART_H__
25 # define __NFC_DRIVER_PN532_UART_H__
26 
27 # include <nfc/nfc-types.h>
28 # include <sys/param.h>
29 # define PN532_UART_DRIVER_NAME "PN532_UART"
30 
31 // Functions used by developer to handle connection to this device
32 nfc_device_desc_t *pn532_uart_pick_device (void);
33 bool pn532_uart_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound);
34 
35 nfc_device_t *pn532_uart_connect (const nfc_device_desc_t * pndd);
36 void pn532_uart_disconnect (nfc_device_t * pnd);
37 
38 // Callback function used by libnfc to transmit commands to the PN53X chip
39 bool pn532_uart_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTx, byte_t * pbtRx,
40  size_t * pszRx);
41 
42 #endif // ! __NFC_DRIVER_PN532_UART_H__