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

◆ nfc_t4t_isodep_init()

int nfc_t4t_isodep_init ( uint8_t * tx_buf,
size_t tx_size,
uint8_t * rx_buf,
size_t rx_size,
const struct nfc_t4t_isodep_cb * cb )

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

Initialize NFC ISO-DEP protocol.

This function prepares a buffer for the ISO-DEP protocol and validates it size.

Parameters
[in,out]tx_bufBuffer for TX data. Data is set there before sending.
[in]tx_sizeSize of the TX buffer.
[in,out]rx_bufBuffer for RX data. Data is set there after receiving valid data from an NFC Tag.
[in]rx_sizeSize of the RX buffer.
[in]cbCallback structure.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.