Descriptor for a Type 2 Tag. More...
Data Structures | |
struct | type_2_tag_serial_number_t |
Descriptor for the internal bytes of a Type 2 Tag. More... | |
struct | type_2_tag_capability_container_t |
Descriptor for the Capability Container (CC) bytes of a Type 2 Tag. More... | |
struct | type_2_tag_t |
Type 2 Tag descriptor. More... | |
Macros | |
#define | NFC_TYPE_2_TAG_DESC_DEF(NAME, MAX_BLOCKS) |
Macro for creating and initializing a Type 2 Tag descriptor. More... | |
#define | NFC_TYPE_2_TAG_DESC(NAME) (NAME##_type_2_tag) |
Macro for accessing the type_2_tag_t instance that was created with NFC_TYPE_2_TAG_DESC_DEF. | |
#define | T2T_NFC_FORUM_DEFINED_DATA 0xE1 |
Value indicating that the Type 2 Tag contains NFC Forum defined data. | |
#define | T2T_UID_BCC_CASCADE_BYTE 0x88 |
Value used for calculating the first BCC byte of a Type 2 Tag serial number. | |
#define | T2T_SUPPORTED_MAJOR_VERSION 1 |
Supported major version of the Type 2 Tag specification. | |
#define | T2T_SUPPORTED_MINOR_VERSION 2 |
Supported minor version of the Type 2 Tag specification. | |
#define | T2T_BLOCK_SIZE 4 |
Type 2 Tag block size in bytes. | |
#define | T2T_CC_BLOCK_OFFSET 12 |
Offset of the Capability Container area in the Type 2 Tag. | |
#define | T2T_FIRST_DATA_BLOCK_OFFSET 16 |
Offset of the data area in the Type 2 Tag. | |
Descriptor for a Type 2 Tag.
#define NFC_TYPE_2_TAG_DESC_DEF | ( | NAME, | |
MAX_BLOCKS | |||
) |
Macro for creating and initializing a Type 2 Tag descriptor.
This macro creates and initializes a static instance of a type_2_tag_t structure and an array of tlv_block_t descriptors.
Use the macro NFC_TYPE_2_TAG_DESC to access the Type 2 Tag descriptor instance.
[in] | NAME | Name of the created descriptor instance. |
[in] | MAX_BLOCKS | Maximum number of tlv_block_t descriptors that can be stored in the array. |