File Control TLV block parser for Type 4 Tag (T4T).
More...
File Control TLV block parser for Type 4 Tag (T4T).
Possible types of File Control TLV for Type 4 Tag.
Enumerator |
---|
NDEF_FILE_CONTROL_TLV |
Control information concerning the EF file with short NDEF message.
|
PROPRIETARY_FILE_CONTROL_TLV |
Control information concerning the Proprietary file with proprietary data.
|
EXTENDED_NDEF_FILE_CONTROL_TLV |
Control information concerning the EF file with long NDEF message.
|
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. |
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. |