New issue 171 by romain.t...@gmail.com: Add timed version of communication
API
http://code.google.com/p/libnfc/issues/detail?id=171
The following API functions (at least) needs to be available with timeout
for the libnfc-llcp:
- nfc_initiator_transceive_bytes()
- nfc_target_receive_bytes()
- nfc_target_send_bytes()
The timeout could be specified as a "struct timeval *" argument that could
be directly passed to select(2) in the UART code and with minor math to
usb_bulk_read(3) & usb_bulk_write(3) in the USB code.
The new API functions could be called:
- nfc_initiator_timedtransceive_bytes()
- nfc_target_timedreceive_bytes()
- nfc_target_timedsend_bytes()
... to follow the mq_send(2) -> mq_timedsend(2) to follow the message
queues POSIX convention.
However, a nfc_initiator_transceive_bytes_timed() function is already
available, allowing to specify a uint32_t 'cycles' argument used by the PN
itself. So maybe proper names should be found. Any suggestion is
welcomed, so I set the status to feedback for now!
Thanks!
Comment #1 on issue 171 by romain.t...@gmail.com: Add timed version of
communication API
http://code.google.com/p/libnfc/issues/detail?id=171
I started working on this a few weeks ago.
Fixed