nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
parser.h File Reference
#include <stdint.h>
#include <nfc/t2t/tlv_block.h>

Go to the source code of this file.

Data Structures

struct  nfc_t2t_sn
 Descriptor for the internal bytes of a Type 2 Tag. More...
 
struct  nfc_t2t_cc
 Descriptor for the Capability Container (CC) bytes of a Type 2 Tag. More...
 
struct  nfc_t2t
 Type 2 Tag descriptor. More...
 

Macros

#define NFC_T2T_DESC_DEF(_name, _max_blocks)
 Create and initialize a Type 2 Tag descriptor.
 
#define NFC_T2T_DESC(_name)   (_name##_t2t)
 Access the nfc_t2t instance that was created with NFC_T2T_DESC_DEF.
 
#define NFC_T2T_NFC_FORUM_DEFINED_DATA   0xE1
 
#define NFC_T2T_UID_BCC_CASCADE_BYTE   0x88
 
#define NFC_T2T_SUPPORTED_MAJOR_VERSION   1
 
#define NFC_T2T_SUPPORTED_MINOR_VERSION   0
 
#define NFC_T2T_BLOCK_SIZE   4
 
#define NFC_T2T_CC_BLOCK_OFFSET   12
 
#define NFC_T2T_FIRST_DATA_BLOCK_OFFSET   16
 

Functions

void nfc_t2t_clear (struct nfc_t2t *t2t)
 Clear the nfc_t2t structure.
 
int nfc_t2t_parse (struct nfc_t2t *t2t, const uint8_t *raw_data)
 Parse raw data that was read from a Type 2 Tag.
 
void nfc_t2t_printout (const struct nfc_t2t *t2t)
 Print parsed contents of the Type 2 Tag.