nRF5 SDK v17.1.0
Modules | Data Structures | Macros | Enumerations | Functions
File Control TLV block parser for Type 4 Tag.

File Control TLV block parser for Type 4 Tag (T4T). More...

Modules

 TLV block for Type 4 Tag configuration
 

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.

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 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_tlvPointer to the File Control TLV that will be filled with parsed data.
[in]p_raw_dataPointer to the buffer with raw TLV data.
[in,out]p_lenIn: Buffer length with TLV blocks. Out: Total length of first identified TLV within the buffer.
Return values
NRF_SUCCESSIf operation was successful.
NRF_ERROR_INVALID_LENGTHIf provided buffer length is too small for TLV block.
NRF_ERROR_INVALID_DATAIf 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]numTLV block number.
[in]p_t4t_tlv_blockPointer to the TLV block descriptor.

Documentation feedback | Developer Zone | Subscribe | Updated