nRF Connect SDK API 0.1.0
|
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.
[out] | t2t | Pointer to the structure that will be filled with parsed data. |
[in] | raw_data | Pointer to the buffer with raw data from the tag (should point at the first byte of the first block of the tag). |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |