Parser for Type 2 Tag data.
More...
Parser for Type 2 Tag data.
Function for clearing the type_2_tag_t structure.
- Parameters
-
[in,out] | p_type_2_tag | Pointer to the structure that should be cleared. |
Function for parsing raw data 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 type_2_tag_t structure.
- Parameters
-
[out] | p_type_2_tag | Pointer to the structure that will be filled with parsed data. |
[in] | p_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). |
- Return values
-
NRF_SUCCESS | If the data was parsed successfully. |
NRF_ERROR_NO_MEM | If there is not enough memory to store all of the TLV blocks. |
Other | If an error occurred during the parsing operation. |
Function for printing parsed contents of the Type 2 Tag.
- Parameters
-
[in] | p_type_2_tag | Pointer to the structure that should be printed. |