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

◆ nfc_ndef_bin_payload_memcopy()

int nfc_ndef_bin_payload_memcopy ( struct nfc_ndef_bin_payload_desc * payload_descriptor,
uint8_t * buffer,
uint32_t * len )

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

Construct the payload for an NFC NDEF record from binary data.

This function copies data from a binary buffer to the payload field of the NFC NDEF record.

Parameters
payload_descriptorPointer to the descriptor of the binary data location and size.
bufferPointer to the payload destination. If NULL, function will calculate the expected size of the record payload.
lenSize of the available memory for the payload as input. Size of the copied payload as output.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.