nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
tlv_block.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NFC_T2T_TLV_BLOCK_H_
8#define NFC_T2T_TLV_BLOCK_H_
9
20#include <zephyr/types.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26
34
37
40
43
46
49};
50
55 uint8_t tag;
56
58 uint16_t length;
59
63 const uint8_t *value;
64};
65
67#define NFC_T2T_TLV_T_LENGTH 1
68
70#define NFC_T2T_TLV_L_SHORT_LENGTH 1
71
73#define NFC_T2T_TLV_L_LONG_LENGTH 3
74
76#define NFC_T2T_TLV_L_FORMAT_FLAG 0xFF
77
79#define NFC_T2T_TLV_NULL_TERMINATOR_LEN 0
80
82#define NFC_T2T_TLV_LOCK_MEMORY_CTRL_LEN 3
83
84#ifdef __cplusplus
85}
86#endif
87
92#endif /* NFC_T2T_TLV_BLOCK_H_ */
nfc_t2t_tlv_block_types
Tag field values.
Definition: tlv_block.h:31
@ NFC_T2T_TLV_MEMORY_CONTROL
Definition: tlv_block.h:39
@ NFC_T2T_TLV_NDEF_MESSAGE
Definition: tlv_block.h:42
@ NFC_T2T_TLV_TERMINATOR
Definition: tlv_block.h:48
@ NFC_T2T_TLV_PROPRIETARY
Definition: tlv_block.h:45
@ NFC_T2T_TLV_LOCK_CONTROL
Definition: tlv_block.h:36
@ NFC_T2T_TLV_NULL
Definition: tlv_block.h:33
uint16_t length
Definition: tlv_block.h:58
const uint8_t * value
Definition: tlv_block.h:63
uint8_t tag
Definition: tlv_block.h:55
TLV block descriptor.
Definition: tlv_block.h:53