nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ nfc_t4t_isodep_rats_send()

int nfc_t4t_isodep_rats_send ( enum nfc_t4t_isodep_fsd fsd,
uint8_t did )

#include <include/nfc/t4t/isodep.h>

Send a Request for Answer to Select (RATS).

This function sends a RATS command according to NFC Forum Digital Specification 2.0 14.6.1. The RATS command is used by Reader/Writer to negotiate the maximum frame size and the bit rate divisors with the Listener. This function must be called before nfc_t4t_isodep_transmit.

Parameters
[in]fsdFrame size for the Reader/Writer.
[in]didLogical number of the addressed Listener. Usually it should be set to 0 in case of communication with one Listener.
Note
According to NFC Forum Digital Specification 2.0, FSD must be set to 256 bytes.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.