7#ifndef NFC_NDEF_LE_OOB_REC_H_
8#define NFC_NDEF_LE_OOB_REC_H_
19#include <zephyr/types.h>
22#include <zephyr/bluetooth/bluetooth.h>
29#define NFC_NDEF_LE_OOB_REC_TK_LEN 16
57#define NFC_NDEF_LE_OOB_REC_APPEARANCE(value) ((uint16_t []) {value})
63#define NFC_NDEF_LE_OOB_REC_FLAGS(value) ((uint8_t []) {value})
69#define NFC_NDEF_LE_OOB_REC_LE_ROLE(value) \
70 ((enum nfc_ndef_le_oob_rec_le_role []) {value})
123#define NFC_NDEF_LE_OOB_RECORD_DESC_DEF(name, \
126 const uint8_t name##_nfc_ndef_le_oob_rec_id = (payload_id); \
127 const uint8_t name##_nfc_ndef_le_oob_rec_id_len = \
128 ((payload_id) != 0) ? 1 : 0; \
129 NFC_NDEF_GENERIC_RECORD_DESC_DEF(name, \
131 &name##_nfc_ndef_le_oob_rec_id, \
132 name##_nfc_ndef_le_oob_rec_id_len, \
133 (nfc_ndef_le_oob_rec_type_field), \
134 sizeof(nfc_ndef_le_oob_rec_type_field), \
135 nfc_ndef_le_oob_rec_payload_constructor, \
143#define NFC_NDEF_LE_OOB_RECORD_DESC(NAME) NFC_NDEF_GENERIC_RECORD_DESC(NAME)
nfc_ndef_le_oob_rec_le_role
LE role options.
Definition le_oob_rec.h:34
@ NFC_NDEF_LE_OOB_REC_LE_ROLE_PERIPH_PREFFERED
Definition le_oob_rec.h:43
@ NFC_NDEF_LE_OOB_REC_LE_ROLE_PERIPH_ONLY
Definition le_oob_rec.h:36
@ NFC_NDEF_LE_OOB_REC_LE_ROLE_CENTRAL_PREFFERED
Definition le_oob_rec.h:48
@ NFC_NDEF_LE_OOB_REC_LE_ROLE_OPTIONS_NUM
Definition le_oob_rec.h:50
@ NFC_NDEF_LE_OOB_REC_LE_ROLE_CENTRAL_ONLY
Definition le_oob_rec.h:38
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 char * local_name
Definition le_oob_rec.h:82
uint8_t * tk_value
Definition le_oob_rec.h:79
enum nfc_ndef_le_oob_rec_le_role * le_role
Definition le_oob_rec.h:77
struct bt_le_oob_sc_data * le_sc_data
Definition le_oob_rec.h:78
uint16_t * appearance
Definition le_oob_rec.h:80
bt_addr_le_t * addr
Definition le_oob_rec.h:76
uint8_t * flags
Definition le_oob_rec.h:81
LE OOB record payload descriptor.
Definition le_oob_rec.h:75