![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [out] | bin_pay_desc | Pointer to the binary payload descriptor that will be filled and referenced by the record descriptor. |
| [out] | rec_desc | Pointer to the record descriptor that will be filled with parsed data. |
| [out] | record_location | Pointer to the record location. |
| [in] | nfc_data | Pointer to the raw data to be parsed. |
| [in,out] | nfc_data_len | As input: size of the NFC data in the nfc_data buffer. As output: size of the parsed record. |
| 0 | If the operation was successful. Otherwise, a (negative) error code is returned. |