nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
isodep.h File Reference

Go to the source code of this file.

Data Structures

struct  nfc_t4t_isodep_tag
 NFC Type 4 Tag data negotiated over RATS command exchange. More...
 
struct  nfc_t4t_isodep_cb
 ISO-DEP Protocol callback structure. More...
 

Macros

#define NFC_T4T_ISODEP_SYNTAX_ERROR   1
 
#define NFC_T4T_ISODEP_SEMANTIC_ERROR   2
 
#define NFC_T4T_ISODEP_TRANSMISSION_ERROR   3
 
#define NFC_T4T_ISODEP_TIMEOUT_ERROR   4
 
#define NFC_T4T_ISODEP_HIST_MAX_LEN   15
 

Enumerations

enum  nfc_t4t_isodep_fsd {
  NFC_T4T_ISODEP_FSD_16 = 0 , NFC_T4T_ISODEP_FSD_24 , NFC_T4T_ISODEP_FSD_32 , NFC_T4T_ISODEP_FSD_40 ,
  NFC_T4T_ISODEP_FSD_48 , NFC_T4T_ISODEP_FSD_64 , NFC_T4T_ISODEP_FSD_96 , NFC_T4T_ISODEP_FSD_128 ,
  NFC_T4T_ISODEP_FSD_256
}
 NFC Type 4 Tag ISO-DEP frame size. More...
 

Functions

int nfc_t4t_isodep_rats_send (enum nfc_t4t_isodep_fsd fsd, uint8_t did)
 Send a Request for Answer to Select (RATS).
 
int nfc_t4t_isodep_tag_deselect (void)
 Send a Deselect command.
 
int nfc_t4t_isodep_data_received (const uint8_t *data, size_t data_len, int err)
 Handle NFC ISO-DEP protocol received data.
 
int nfc_t4t_isodep_transmit (const uint8_t *data, size_t data_len)
 Exchange the specified amount of data.
 
void nfc_t4t_isodep_on_timeout (void)
 Handle a transmission timeout error.
 
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)
 Initialize NFC ISO-DEP protocol.