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

◆ NFC_NDEF_LE_OOB_RECORD_DESC_DEF

#define NFC_NDEF_LE_OOB_RECORD_DESC_DEF ( name,
payload_id,
payload_desc )

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

Value:
const uint8_t name##_nfc_ndef_le_oob_rec_id = (payload_id); \
const uint8_t name##_nfc_ndef_le_oob_rec_id_len = ((payload_id) != 0) ? 1 : 0; \
NFC_NDEF_GENERIC_RECORD_DESC_DEF(name, TNF_MEDIA_TYPE, &name##_nfc_ndef_le_oob_rec_id, \
name##_nfc_ndef_le_oob_rec_id_len, \
int nfc_ndef_le_oob_rec_payload_constructor(const struct nfc_ndef_le_oob_rec_payload_desc *payload_desc, uint8_t *buff, uint32_t *len)
Construct the payload for a Bluetooth Carrier Configuration LE Record.
const uint8_t nfc_ndef_le_oob_rec_type_field[32]
External reference to the type field of the Bluetooth LE Carrier Configuration NDEF Record,...
@ TNF_MEDIA_TYPE
Definition record.h:71

Generate a description of an NFC NDEF Bluetooth Carrier Configuration LE Record.

This macro declares and initializes an instance of an NFC NDEF record description for a Bluetooth Carrier Configuration LE record.

Note
The record descriptor is declared as automatic variable, which implies that the NDEF message encoding must be done in the same variable scope.
Parameters
nameName for accessing the record descriptor.
payload_idNDEF record header Payload ID field (limited to one byte). If 0, no ID is present in the record description.
payload_descPointer to the description of the payload. This data is used to create the record payload.