nRF Connect SDK API 2.8.99
|
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.
[in] | cmd_apdu | Pointer to the C-APDU descriptor. |
[out] | raw_data | Pointer to the buffer with encoded C-APDU. |
[in,out] | len | Size of the available memory for the C-APDU as input. Size of the generated C-APDU as output. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |