25 #ifndef __NFC_DRIVERS_H__
26 # define __NFC_DRIVERS_H__
32 # if defined (DRIVER_ACR122_ENABLED)
36 # if defined (DRIVER_PN531_USB_ENABLED) || defined (DRIVER_PN533_USB_ENABLED)
40 # if defined (DRIVER_PN531_USB_ENABLED)
44 # if defined (DRIVER_PN533_USB_ENABLED)
48 # if defined (DRIVER_ARYGON_ENABLED)
52 # if defined (DRIVER_PN532_UART_ENABLED)
56 # define DRIVERS_MAX_DEVICES 16
57 # define MAX_FRAME_LEN 264
61 # if defined (DRIVER_PN531_USB_ENABLED)
62 {PN531_USB_DRIVER_NAME, &pn53x_callbacks_list, pn531_usb_pick_device, pn531_usb_list_devices, pn531_usb_connect,
63 NULL, pn53x_usb_transceive, pn53x_usb_disconnect},
65 # if defined (DRIVER_PN533_USB_ENABLED)
66 {PN533_USB_DRIVER_NAME, &pn53x_callbacks_list, pn533_usb_pick_device, pn533_usb_list_devices, pn533_usb_connect,
67 pn533_usb_init, pn53x_usb_transceive, pn53x_usb_disconnect},
69 # if defined (DRIVER_ACR122_ENABLED)
70 {ACR122_DRIVER_NAME, &pn53x_callbacks_list, acr122_pick_device,
acr122_list_devices, acr122_connect,
71 NULL, acr122_transceive, acr122_disconnect},
73 # if defined (DRIVER_ARYGON_ENABLED)
74 {ARYGON_DRIVER_NAME, &pn53x_callbacks_list, arygon_pick_device,
arygon_list_devices, arygon_connect,
75 NULL, arygon_transceive, arygon_disconnect},
77 # if defined (DRIVER_PN532_UART_ENABLED)
78 {PN532_UART_DRIVER_NAME, &pn53x_callbacks_list, pn532_uart_pick_device,
pn532_uart_list_devices, pn532_uart_connect,
79 NULL, pn532_uart_transceive, pn532_uart_disconnect},
89 # define PRINT_HEX(pcTag, pbtData, szBytes) do { \
91 printf(" %s: ", pcTag); \
92 for (__szPos=0; __szPos < (size_t)(szBytes); __szPos++) { \
93 printf("%02x ",pbtData[__szPos]); \
99 #endif // __NFC_DRIVERS_H__