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

◆ nfc_ndef_le_oob_rec_parse()

int nfc_ndef_le_oob_rec_parse ( const struct nfc_ndef_record_desc * rec_desc,
uint8_t * result_buf,
uint32_t * result_buf_len )

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

Parse an NDEF LE OOB Record.

This function only parses NDEF Record descriptors with LE OOB Record Type. Parsing results are stored in the LE OOB Record descriptor (nfc_ndef_le_oob_rec_payload_desc).

Parameters
[in]rec_descGeneral NDEF Record descriptor.
[out]result_bufThe buffer that will be used to hold the LE OOB Record descriptor. After parsing is completed successfully, the first address in the buffer is filled by the NDEF Record descriptor (nfc_ndef_le_oob_rec_payload_desc), which provides a full description of the parsed NDEF Record.
[in,out]result_buf_lenAs input: size of the result_buf buffer As output: size of the reserved (used) part of the result_buf buffer.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.