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

◆ NFC_NDEF_CH_CR_RECORD_DESC_DEF

#define NFC_NDEF_CH_CR_RECORD_DESC_DEF (   _name,
  _random_number 
)

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

Value:
_name##_nfc_cr_rec = { \
.random = _random_number, \
}; \
NFC_NDEF_GENERIC_RECORD_DESC_DEF(_name, \
0, \
0, \
&(_name##_nfc_cr_rec))
#define NFC_NDEF_CH_REC_TYPE_LENGTH
Size of the type field of the Connection Handover records. Record types are defined in the file ch_re...
Definition: ch.h:34
int nfc_ndef_ch_cr_rec_payload_encode(const struct nfc_ndef_ch_cr_rec *nfc_rec_cr, uint8_t *buf, uint32_t *len)
Constructor for an NFC NDEF Collision Resolution record payload.
const uint8_t nfc_ndef_ch_cr_rec_type_field[2]
External reference to the type field of the Collision Resolution Record, defined in the file ch_rec....
@ TNF_WELL_KNOWN
Definition: record.h:71
uint16_t random
Definition: ch.h:131
Collision Resolution record payload descriptor.
Definition: ch.h:129

Macro for creating and initializing an NFC NDEF record descriptor for a Collision Resolution record.

This macro creates and initializes an instance of type nfc_ndef_record_desc and an instance of type nfc_ndef_ch_cr_rec, which together constitute an instance of an Collision Resolution record.

Use the macro NFC_NDEF_CR_RECORD_DESC to access the NDEF Collision Resolution record descriptor instance.

Parameters
[in]_nameName of the created record descriptor instance.
[in]_random_numberGenerated random number required to resolve a collision.