nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nfc_t4t_response_pdu_send()

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.

Parameters
pduConst PDU pointer.
pdu_lengthLength of PDU.
Return values
0Success.
-NRF_EINVALInvalid argument (for example, wrong data length, NULL pointer).
-NRF_EOPNOTSUPPEmulation is in running state.