nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
le_oob_rec.h File Reference
#include <stddef.h>
#include <zephyr/types.h>
#include <nfc/ndef/record.h>
#include <nfc/ndef/payload_type_common.h>
#include <zephyr/bluetooth/bluetooth.h>

Go to the source code of this file.

Data Structures

struct  nfc_ndef_le_oob_rec_payload_desc
 LE OOB record payload descriptor. More...
 

Macros

#define NFC_NDEF_LE_OOB_REC_TK_LEN   16
 
#define NFC_NDEF_LE_OOB_REC_APPEARANCE(value)   ((uint16_t []) {value})
 Macro for including Appearance BLE AD Type to the nfc_ndef_le_oob_rec_payload_desc descriptor.
 
#define NFC_NDEF_LE_OOB_REC_FLAGS(value)   ((uint8_t []) {value})
 Macro for including Flags BLE AD Type to the nfc_ndef_le_oob_rec_payload_desc descriptor.
 
#define NFC_NDEF_LE_OOB_REC_LE_ROLE(value)    ((enum nfc_ndef_le_oob_rec_le_role []) {value})
 Macro for including LE Role BLE AD Type to the nfc_ndef_le_oob_rec_payload_desc descriptor.
 
#define NFC_NDEF_LE_OOB_RECORD_DESC_DEF(name, payload_id, payload_desc)
 Generate a description of an NFC NDEF Bluetooth Carrier Configuration LE Record.
 
#define NFC_NDEF_LE_OOB_RECORD_DESC(NAME)   NFC_NDEF_GENERIC_RECORD_DESC(NAME)
 Macro for accessing the NFC NDEF Bluetooth Carrier Configuration LE record descriptor instance that was created with NFC_NDEF_LE_OOB_RECORD_DESC_DEF.
 

Enumerations

enum  nfc_ndef_le_oob_rec_le_role {
  NFC_NDEF_LE_OOB_REC_LE_ROLE_PERIPH_ONLY , NFC_NDEF_LE_OOB_REC_LE_ROLE_CENTRAL_ONLY , NFC_NDEF_LE_OOB_REC_LE_ROLE_PERIPH_PREFFERED , NFC_NDEF_LE_OOB_REC_LE_ROLE_CENTRAL_PREFFERED ,
  NFC_NDEF_LE_OOB_REC_LE_ROLE_OPTIONS_NUM
}
 LE role options. More...
 

Functions

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.