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

◆ NFC_NDEF_CH_AC_RECORD_DESC_DEF

#define NFC_NDEF_CH_AC_RECORD_DESC_DEF (   _name,
  _cps,
  _carr_data_ref_len,
  _carr_data_ref,
  _max_aux_data_ref_cnt 
)

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

Value:
_name##nfc_ndef_ch_ac_rec_ref[_max_aux_data_ref_cnt]; \
_name##_nfc_ac_rec = { \
.cps = _cps, \
.carrier_data_ref = { _carr_data_ref_len, _carr_data_ref }, \
.max_aux_data_ref_cnt = _max_aux_data_ref_cnt, \
.aux_data_ref_cnt = 0, \
.aux_data_ref = _name##nfc_ndef_ch_ac_rec_ref \
}; \
NFC_NDEF_GENERIC_RECORD_DESC_DEF(_name, \
0, \
0, \
&(_name##_nfc_ac_rec))
int nfc_ndef_ch_ac_rec_payload_encode(const struct nfc_ndef_ch_ac_rec *nfc_rec_ac, uint8_t *buf, uint32_t *len)
Constructor for an NFC NDEF Alternative Carrier record payload.
#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
const uint8_t nfc_ndef_ch_ac_rec_type_field[2]
External reference to the type field of the Alternative Carrier Record, defined in the file ch_rec....
@ TNF_WELL_KNOWN
Definition: record.h:71
Carrier Data Reference and Auxiliary Data Reference descriptor.
Definition: ch.h:96
enum nfc_ndef_ch_ac_rec_cps cps
Definition: ch.h:111
Alternative Carrier record payload descriptor.
Definition: ch.h:109

Macro for creating and initializing an NFC NDEF record descriptor for an Alternative Carrier record.

This macro creates and initializes an instance of type nfc_ndef_record_desc and an instance of type nfc_ndef_ch_ac_rec, which together constitute an instance of an Alternative Carrier record.

Use the macro NFC_NDEF_CH_AC_RECORD_DESC to access the NDEF Alternative Carrier record descriptor instance.

Parameters
[in]_nameName of the created record descriptor instance.
[in]_cpsCarrier Power State value.
[in]_carr_data_ref_lenLength of the Carrier Data Reference field.
[in]_carr_data_refPointer to the Carrier Data Reference field.
[in]_max_aux_data_ref_cntMaximum number of Auxiliary Data Reference fields.