File Control TLV block parser for Type 4 Tag (T4T). More...
Data Structures |
|
| struct | nfc_t4t_file_t |
|
File content descriptor.
More...
|
|
| struct | nfc_t4t_file_control_val_t |
|
Extended NDEF/NDEF/Proprietary File Control Value descriptor.
More...
|
|
| struct | nfc_t4t_tlv_block_t |
|
File Control TLV block descriptor.
More...
|
|
Macros |
|
| #define | CONTROL_FILE_READ_ACCESS_GRANTED 0x00 |
|
Read access granted without any security.
|
|
Enumerations |
|
| enum |
nfc_t4t_tlv_block_types_t
{
NDEF_FILE_CONTROL_TLV = 0x04, PROPRIETARY_FILE_CONTROL_TLV = 0x05, EXTENDED_NDEF_FILE_CONTROL_TLV = 0x06 } |
|
Possible types of File Control TLV for Type 4 Tag.
More...
|
|
Functions |
|
| ret_code_t | nfc_t4t_file_control_tlv_parse ( nfc_t4t_tlv_block_t *p_file_control_tlv, uint8_t *p_raw_data, uint16_t *p_len) |
|
Function for parsing raw data of File Control TLV, read from a Type 4 Tag.
More...
|
|
| void | nfc_t4t_file_control_tlv_printout (uint8_t num, nfc_t4t_tlv_block_t *p_t4t_tlv_block) |
|
Function for printing TLV block descriptor.
More...
|
|
Possible values of file write access condition field. |
|
| #define | CONTROL_FILE_WRITE_ACCESS_GRANTED 0x00 |
|
Write access granted without any security.
|
|
| #define | CONTROL_FILE_WRITE_ACCESS_DISABLED 0xFF |
|
No write access granted without any security (read-only).
|
|
Detailed Description
File Control TLV block parser for Type 4 Tag (T4T).
Enumeration Type Documentation
Possible types of File Control TLV for Type 4 Tag.
Function Documentation
| ret_code_t nfc_t4t_file_control_tlv_parse | ( | nfc_t4t_tlv_block_t * | p_file_control_tlv , |
| uint8_t * | p_raw_data , | ||
| uint16_t * | p_len | ||
| ) |
Function for parsing raw data of File Control TLV, read from a Type 4 Tag.
This function parses raw data of File Control TLV and stores the results in its descriptor.
- Parameters
-
[in,out] p_file_control_tlv Pointer to the File Control TLV that will be filled with parsed data. [in] p_raw_data Pointer to the buffer with raw TLV data. [in,out] p_len In: Buffer length with TLV blocks. Out: Total length of first identified TLV within the buffer.
- Return values
-
NRF_SUCCESS If operation was successful. NRF_ERROR_INVALID_LENGTH If provided buffer length is too small for TLV block. NRF_ERROR_INVALID_DATA If any TLV block field contains invalid data.
| void nfc_t4t_file_control_tlv_printout | ( | uint8_t | num , |
| nfc_t4t_tlv_block_t * | p_t4t_tlv_block | ||
| ) |
Function for printing TLV block descriptor.
This function prints TLV block descriptor.
- Parameters
-
[in] num TLV block number. [in] p_t4t_tlv_block Pointer to the TLV block descriptor.