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

◆ nfc_t4t_apdu_resp_decode()

int nfc_t4t_apdu_resp_decode ( struct nfc_t4t_apdu_resp resp_apdu,
const uint8_t *  raw_data,
uint16_t  len 
)

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

Decode R-APDU.

This function decodes buffer with encoded R-APDU and stores results in the R-APDU descriptor.

Parameters
[out]resp_apduPointer to the R-APDU descriptor.
[in]raw_dataPointer to the buffer with encoded R-APDU.
[in]lenSize of the buffer with encoded R-APDU.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.