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

◆ nfc_t2t_parse()

int nfc_t2t_parse ( struct nfc_t2t * t2t,
const uint8_t * raw_data )

#include <include/nfc/t2t/parser.h>

Parse raw data that was read from a Type 2 Tag.

This function parses the header and the following TLV blocks of a Type 2 Tag. The data is read from a buffer and stored in a nfc_t2t structure.

Parameters
[out]t2tPointer to the structure that will be filled with parsed data.
[in]raw_dataPointer to the buffer with raw data from the tag (should point at the first byte of the first block of the tag).
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.