Abort mecanism is now implemented in driver layer:
iAbortFd file descriptor array have been removed from nfc_device_t; nfc_abort_command() can now failed (return false); nfc_abort_command() now call abort_command pointer from drivers; pn532_uart and arygon drivers use a pipe-based mecanism (similar from previous one); pn53x_usb driver use a boolean flag-based mecanism (the previous one does not work as expected); pn53x_usb now print smarter messages on error at usb connection; pn53x_usb now handle a strange case: sometimes, the first sent command is not ACKed by PN53x USB device, a dummy command is now sent.
This commit is contained in:
parent
72422e819b
commit
0265515a0c
8 changed files with 102 additions and 52 deletions
|
|
@ -66,7 +66,6 @@ typedef struct {
|
|||
* +----------- Driver-level general error (common to all drivers)
|
||||
*/
|
||||
int iLastError;
|
||||
int iAbortFds[2];
|
||||
} nfc_device_t;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ extern "C" {
|
|||
/* NFC Device/Hardware manipulation */
|
||||
NFC_EXPORT nfc_device_t *nfc_connect (nfc_device_desc_t * pndd);
|
||||
NFC_EXPORT void nfc_disconnect (nfc_device_t * pnd);
|
||||
NFC_EXPORT void nfc_abort_command (nfc_device_t * pnd);
|
||||
NFC_EXPORT bool nfc_abort_command (nfc_device_t * pnd);
|
||||
NFC_EXPORT void nfc_list_devices (nfc_device_desc_t pnddDevices[], size_t szDevices, size_t * pszDeviceFound);
|
||||
NFC_EXPORT bool nfc_configure (nfc_device_t * pnd, const nfc_device_option_t ndo, const bool bEnable);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue