![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| payload_descriptor | Pointer to the descriptor of the binary data location and size. |
| buffer | Pointer to the payload destination. If NULL, function will calculate the expected size of the record payload. |
| len | Size of the available memory for the payload as input. Size of the copied payload as output. |
| 0 | If the operation was successful. Otherwise, a (negative) error code is returned. |