libnfc 1.3.9
|
00001 00024 #ifndef __NFC_DRIVER_PN532_UART_H__ 00025 # define __NFC_DRIVER_PN532_UART_H__ 00026 00027 # include <nfc/nfc-types.h> 00028 00029 # define PN532_UART_DRIVER_NAME "PN532_UART" 00030 00031 // Functions used by developer to handle connection to this device 00032 nfc_device_desc_t *pn532_uart_pick_device (void); 00033 bool pn532_uart_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound); 00034 00035 nfc_device_t *pn532_uart_connect (const nfc_device_desc_t * pndd); 00036 void pn532_uart_disconnect (nfc_device_t * pnd); 00037 00038 // Callback function used by libnfc to transmit commands to the PN53X chip 00039 bool pn532_uart_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen, byte_t * pbtRx, 00040 size_t * pszRxLen); 00041 00042 #endif // ! __NFC_DRIVER_PN532_UART_H__