![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| ndef_record_desc | Pointer to the record descriptor. |
| record_location | Location of the record within the NDEF message. |
| record_buffer | Pointer to the record destination. If NULL, function will calculate the expected size of the record. |
| record_len | Size of the available memory for the record as input. Size of the generated record as output. |
| 0 | If the operation was successful. Otherwise, a (negative) error code is returned. |