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

◆ nfc_ndef_ch_cr_rec_payload_encode()

int nfc_ndef_ch_cr_rec_payload_encode ( const struct nfc_ndef_ch_cr_rec * nfc_rec_cr,
uint8_t * buf,
uint32_t * len )

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

Constructor for an NFC NDEF Collision Resolution record payload.

Parameters
[in]nfc_rec_crPointer to the Collision Resolution record description.
[out]bufPointer to the payload destination. If NULL, function will calculate the expected size of the Collision Resolution record payload.
[in,out]lenSize of the available memory to write as input. Size of the generated record payload as output.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.