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

◆ NFC_T2T_DESC_DEF

#define NFC_T2T_DESC_DEF ( _name,
_max_blocks )

#include <include/nfc/t2t/parser.h>

Value:
static struct nfc_t2t_tlv_block _name##_tlv_block_array[_max_blocks]; \
static struct nfc_t2t NFC_T2T_DESC(_name) = \
{ \
.max_tlv_blocks = _max_blocks, \
.tlv_block_array = _name##_tlv_block_array, \
.tlv_count = 0 \
}
#define NFC_T2T_DESC(_name)
Access the nfc_t2t instance that was created with NFC_T2T_DESC_DEF.
Definition parser.h:119
TLV block descriptor.
Definition tlv_block.h:53
Type 2 Tag descriptor.
Definition parser.h:73

Create and initialize a Type 2 Tag descriptor.

This macro creates and initializes a static instance of an nfc_t2t structure and an array of Type 2 Tag TLV blocks descriptors.

Use the macro NFC_T2T_DESC to access the Type 2 Tag descriptor instance.

Parameters
[in]_nameName of the created descriptor instance.
[in]_max_blocksMaximum number of Type 2 Tag TLV blocks descriptors that can be stored in the array.