Minor indentation fixes.
This commit is contained in:
parent
362dfb51db
commit
0ea9467b56
3 changed files with 22 additions and 22 deletions
|
@ -86,8 +86,8 @@ extern "C" {
|
||||||
NFC_EXPORT bool nfc_initiator_transceive_bytes (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen,
|
NFC_EXPORT bool nfc_initiator_transceive_bytes (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen,
|
||||||
byte_t * pbtRx, size_t * pszRxLen);
|
byte_t * pbtRx, size_t * pszRxLen);
|
||||||
NFC_EXPORT bool nfc_initiator_transceive_bits (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxBits,
|
NFC_EXPORT bool nfc_initiator_transceive_bits (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxBits,
|
||||||
const byte_t * pbtTxPar, byte_t * pbtRx, size_t * pszRxBits,
|
const byte_t * pbtTxPar, byte_t * pbtRx, size_t * pszRxBits,
|
||||||
byte_t * pbtRxPar);
|
byte_t * pbtRxPar);
|
||||||
|
|
||||||
/* NFC target: act as tag (i.e. MIFARE Classic) or NFC target device. */
|
/* NFC target: act as tag (i.e. MIFARE Classic) or NFC target device. */
|
||||||
NFC_EXPORT bool nfc_target_init (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxBits);
|
NFC_EXPORT bool nfc_target_init (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxBits);
|
||||||
|
|
|
@ -68,27 +68,27 @@ static const struct driver_callbacks drivers_callbacks_list[] = {
|
||||||
{ACR122_DRIVER_NAME, &pn53x_callbacks_list, acr122_pick_device, acr122_list_devices, acr122_connect,
|
{ACR122_DRIVER_NAME, &pn53x_callbacks_list, acr122_pick_device, acr122_list_devices, acr122_connect,
|
||||||
acr122_transceive, acr122_disconnect},
|
acr122_transceive, acr122_disconnect},
|
||||||
# endif
|
# endif
|
||||||
/* DRIVER_ACR122_ENABLED */
|
/* DRIVER_ACR122_ENABLED */
|
||||||
# if defined (DRIVER_PN531_USB_ENABLED)
|
# if defined (DRIVER_PN531_USB_ENABLED)
|
||||||
{PN531_USB_DRIVER_NAME, &pn53x_callbacks_list, pn531_usb_pick_device, pn531_usb_list_devices, pn531_usb_connect,
|
{PN531_USB_DRIVER_NAME, &pn53x_callbacks_list, pn531_usb_pick_device, pn531_usb_list_devices, pn531_usb_connect,
|
||||||
pn53x_usb_transceive, pn53x_usb_disconnect},
|
pn53x_usb_transceive, pn53x_usb_disconnect},
|
||||||
# endif
|
# endif
|
||||||
/* DRIVER_PN531_USB_ENABLED */
|
/* DRIVER_PN531_USB_ENABLED */
|
||||||
# if defined (DRIVER_PN533_USB_ENABLED)
|
# if defined (DRIVER_PN533_USB_ENABLED)
|
||||||
{PN533_USB_DRIVER_NAME, &pn53x_callbacks_list, pn533_usb_pick_device, pn533_usb_list_devices, pn533_usb_connect,
|
{PN533_USB_DRIVER_NAME, &pn53x_callbacks_list, pn533_usb_pick_device, pn533_usb_list_devices, pn533_usb_connect,
|
||||||
pn53x_usb_transceive, pn53x_usb_disconnect},
|
pn53x_usb_transceive, pn53x_usb_disconnect},
|
||||||
# endif
|
# endif
|
||||||
/* DRIVER_PN533_USB_ENABLED */
|
/* DRIVER_PN533_USB_ENABLED */
|
||||||
# if defined (DRIVER_ARYGON_ENABLED)
|
# if defined (DRIVER_ARYGON_ENABLED)
|
||||||
{ARYGON_DRIVER_NAME, &pn53x_callbacks_list, arygon_pick_device, arygon_list_devices, arygon_connect,
|
{ARYGON_DRIVER_NAME, &pn53x_callbacks_list, arygon_pick_device, arygon_list_devices, arygon_connect,
|
||||||
arygon_transceive, arygon_disconnect},
|
arygon_transceive, arygon_disconnect},
|
||||||
# endif
|
# endif
|
||||||
/* DRIVER_ARYGON_ENABLED */
|
/* DRIVER_ARYGON_ENABLED */
|
||||||
# if defined (DRIVER_PN532_UART_ENABLED)
|
# if defined (DRIVER_PN532_UART_ENABLED)
|
||||||
{PN532_UART_DRIVER_NAME, &pn53x_callbacks_list, pn532_uart_pick_device, pn532_uart_list_devices, pn532_uart_connect,
|
{PN532_UART_DRIVER_NAME, &pn53x_callbacks_list, pn532_uart_pick_device, pn532_uart_list_devices, pn532_uart_connect,
|
||||||
pn532_uart_transceive, pn532_uart_disconnect},
|
pn532_uart_transceive, pn532_uart_disconnect},
|
||||||
# endif
|
# endif
|
||||||
/* DRIVER_PN532_UART_ENABLED */
|
/* DRIVER_PN532_UART_ENABLED */
|
||||||
};
|
};
|
||||||
|
|
||||||
# ifdef DEBUG
|
# ifdef DEBUG
|
||||||
|
|
|
@ -199,10 +199,10 @@ nfc_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * ps
|
||||||
for (uiDriver = 0; uiDriver < sizeof (drivers_callbacks_list) / sizeof (drivers_callbacks_list[0]); uiDriver++) {
|
for (uiDriver = 0; uiDriver < sizeof (drivers_callbacks_list) / sizeof (drivers_callbacks_list[0]); uiDriver++) {
|
||||||
if (drivers_callbacks_list[uiDriver].list_devices != NULL) {
|
if (drivers_callbacks_list[uiDriver].list_devices != NULL) {
|
||||||
szN = 0;
|
szN = 0;
|
||||||
if (drivers_callbacks_list[uiDriver].
|
if (drivers_callbacks_list[uiDriver].list_devices
|
||||||
list_devices (pnddDevices + (*pszDeviceFound), szDevices - (*pszDeviceFound), &szN)) {
|
(pnddDevices + (*pszDeviceFound), szDevices - (*pszDeviceFound), &szN)) {
|
||||||
*pszDeviceFound += szN;
|
*pszDeviceFound += szN;
|
||||||
DBG ("%ld device(s) found using %s driver", (unsigned long) szN, drivers_callbacks_list[uiDriver].acDriver);
|
DBG ("%ld device(s) found using %s driver", (unsigned long) szN, drivers_callbacks_list[uiDriver].acDriver);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
DBG ("No listing function avaible for %s driver", drivers_callbacks_list[uiDriver].acDriver);
|
DBG ("No listing function avaible for %s driver", drivers_callbacks_list[uiDriver].acDriver);
|
||||||
|
|
Loading…
Add table
Reference in a new issue