nrfxlib API 0.1.0
|
int nfc_t4t_response_pdu_send | ( | const uint8_t * | pdu, |
size_t | pdu_length | ||
) |
#include <nfc/include/nfc_t4t_lib.h>
Send a raw response PDU after getting a Request PDU callback.
When the library works in raw ISO-DEP mode it will signal request PDUs through the callback. The application then has to answer with a response PDU. It will use this function to send back the response PDU. This function can not be used in T4T NDEF (RW / STATIC) emulation modes.
The lower ISODEP layer will handle the defragmentation of a long response PDU into smalleR pieces that the PCD can understand.
pdu | Const PDU pointer. |
pdu_length | Length of PDU. |
0 | Success. |
-NRF_EINVAL | Invalid argument (for example, wrong data length, NULL pointer). |
-NRF_EOPNOTSUPP | Emulation is in running state. |