nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nfc_t4t_tlv_block_parse()

int nfc_t4t_tlv_block_parse ( struct nfc_t4t_tlv_block file_control_tlv,
const uint8_t *  raw_data,
uint16_t *  len 
)

#include <include/nfc/t4t/tlv_block.h>

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]file_control_tlvPointer to the File Control TLV that will be filled with parsed data.
[in]raw_dataPointer to the buffer with raw TLV data.
[in,out]lenIn: Buffer length with TLV blocks. Out: Total length of first identified TLV within the buffer.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.