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

◆ nfc_ndef_record_encode()

int nfc_ndef_record_encode ( struct nfc_ndef_record_desc const * ndef_record_desc,
enum nfc_ndef_record_location const record_location,
uint8_t * record_buffer,
uint32_t * record_len )

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

Encode an NDEF record.

This function encodes an NDEF record according to the provided record descriptor.

Parameters
ndef_record_descPointer to the record descriptor.
record_locationLocation of the record within the NDEF message.
record_bufferPointer to the record destination. If NULL, function will calculate the expected size of the record.
record_lenSize of the available memory for the record as input. Size of the generated record as output.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.