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

◆ nfc_t4t_apdu_comm_encode()

int nfc_t4t_apdu_comm_encode ( const struct nfc_t4t_apdu_comm cmd_apdu,
uint8_t *  raw_data,
uint16_t *  len 
)

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

Encode C-APDU.

This function encodes C-APDU according to the provided descriptor.

Parameters
[in]cmd_apduPointer to the C-APDU descriptor.
[out]raw_dataPointer to the buffer with encoded C-APDU.
[in,out]lenSize of the available memory for the C-APDU as input. Size of the generated C-APDU as output.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.