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

◆ nfc_ndef_record_parse()

int nfc_ndef_record_parse ( struct nfc_ndef_bin_payload_desc * bin_pay_desc,
struct nfc_ndef_record_desc * rec_desc,
enum nfc_ndef_record_location * record_location,
const uint8_t * nfc_data,
uint32_t * nfc_data_len )

#include <include/nfc/ndef/record_parser.h>

Parse NDEF records.

This parsing implementation uses the binary payload descriptor (nfc_ndef_bin_payload_desc) to describe the payload for the record.

Parameters
[out]bin_pay_descPointer to the binary payload descriptor that will be filled and referenced by the record descriptor.
[out]rec_descPointer to the record descriptor that will be filled with parsed data.
[out]record_locationPointer to the record location.
[in]nfc_dataPointer to the raw data to be parsed.
[in,out]nfc_data_lenAs input: size of the NFC data in the nfc_data buffer. As output: size of the parsed record.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.