11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_BLUETOOTH_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_BLUETOOTH_H_
46#define BT_ID_DEFAULT 0
52struct bt_le_per_adv_sync;
90 void (*
sent)(
struct bt_le_ext_adv *adv,
358#define BT_DATA(_type, _data, _data_len) \
361 .data_len = (_data_len), \
362 .data = (const uint8_t *)(_data), \
374#define BT_DATA_BYTES(_type, _bytes...) \
375 BT_DATA(_type, ((uint8_t []) { _bytes }), \
376 sizeof((uint8_t []) { _bytes }))
683#define BT_LE_ADV_PARAM_INIT(_options, _int_min, _int_max, _peer) \
685 .id = BT_ID_DEFAULT, \
687 .secondary_max_skip = 0, \
688 .options = (_options), \
689 .interval_min = (_int_min), \
690 .interval_max = (_int_max), \
703#define BT_LE_ADV_PARAM(_options, _int_min, _int_max, _peer) \
704 ((struct bt_le_adv_param[]) { \
705 BT_LE_ADV_PARAM_INIT(_options, _int_min, _int_max, _peer) \
708#define BT_LE_ADV_CONN_DIR(_peer) BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | \
709 BT_LE_ADV_OPT_ONE_TIME, 0, 0,\
713#define BT_LE_ADV_CONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE, \
714 BT_GAP_ADV_FAST_INT_MIN_2, \
715 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
717#define BT_LE_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | \
718 BT_LE_ADV_OPT_USE_NAME, \
719 BT_GAP_ADV_FAST_INT_MIN_2, \
720 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
722#define BT_LE_ADV_CONN_NAME_AD BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | \
723 BT_LE_ADV_OPT_USE_NAME | \
724 BT_LE_ADV_OPT_FORCE_NAME_IN_AD, \
725 BT_GAP_ADV_FAST_INT_MIN_2, \
726 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
728#define BT_LE_ADV_CONN_DIR_LOW_DUTY(_peer) \
729 BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_ONE_TIME | \
730 BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY, \
731 BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, \
735#define BT_LE_ADV_NCONN BT_LE_ADV_PARAM(0, BT_GAP_ADV_FAST_INT_MIN_2, \
736 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
739#define BT_LE_ADV_NCONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_USE_NAME, \
740 BT_GAP_ADV_FAST_INT_MIN_2, \
741 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
744#define BT_LE_ADV_NCONN_IDENTITY BT_LE_ADV_PARAM(BT_LE_ADV_OPT_USE_IDENTITY, \
745 BT_GAP_ADV_FAST_INT_MIN_2, \
746 BT_GAP_ADV_FAST_INT_MAX_2, \
750#define BT_LE_EXT_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
751 BT_LE_ADV_OPT_CONNECTABLE | \
752 BT_LE_ADV_OPT_USE_NAME, \
753 BT_GAP_ADV_FAST_INT_MIN_2, \
754 BT_GAP_ADV_FAST_INT_MAX_2, \
758#define BT_LE_EXT_ADV_SCAN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
759 BT_LE_ADV_OPT_SCANNABLE | \
760 BT_LE_ADV_OPT_USE_NAME, \
761 BT_GAP_ADV_FAST_INT_MIN_2, \
762 BT_GAP_ADV_FAST_INT_MAX_2, \
766#define BT_LE_EXT_ADV_NCONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, \
767 BT_GAP_ADV_FAST_INT_MIN_2, \
768 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
771#define BT_LE_EXT_ADV_NCONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
772 BT_LE_ADV_OPT_USE_NAME, \
773 BT_GAP_ADV_FAST_INT_MIN_2, \
774 BT_GAP_ADV_FAST_INT_MAX_2, \
778#define BT_LE_EXT_ADV_NCONN_IDENTITY \
779 BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
780 BT_LE_ADV_OPT_USE_IDENTITY, \
781 BT_GAP_ADV_FAST_INT_MIN_2, \
782 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
785#define BT_LE_EXT_ADV_CODED_NCONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
786 BT_LE_ADV_OPT_CODED, \
787 BT_GAP_ADV_FAST_INT_MIN_2, \
788 BT_GAP_ADV_FAST_INT_MAX_2, \
794#define BT_LE_EXT_ADV_CODED_NCONN_NAME \
795 BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CODED | \
796 BT_LE_ADV_OPT_USE_NAME, \
797 BT_GAP_ADV_FAST_INT_MIN_2, \
798 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
803#define BT_LE_EXT_ADV_CODED_NCONN_IDENTITY \
804 BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CODED | \
805 BT_LE_ADV_OPT_USE_IDENTITY, \
806 BT_GAP_ADV_FAST_INT_MIN_2, \
807 BT_GAP_ADV_FAST_INT_MAX_2, NULL)
815#define BT_LE_EXT_ADV_START_PARAM_INIT(_timeout, _n_evts) \
817 .timeout = (_timeout), \
818 .num_events = (_n_evts), \
827#define BT_LE_EXT_ADV_START_PARAM(_timeout, _n_evts) \
828 ((struct bt_le_ext_adv_start_param[]) { \
829 BT_LE_EXT_ADV_START_PARAM_INIT((_timeout), (_n_evts)) \
832#define BT_LE_EXT_ADV_START_DEFAULT BT_LE_EXT_ADV_START_PARAM(0, 0)
841#define BT_LE_PER_ADV_PARAM_INIT(_int_min, _int_max, _options) \
843 .interval_min = (_int_min), \
844 .interval_max = (_int_max), \
845 .options = (_options), \
855#define BT_LE_PER_ADV_PARAM(_int_min, _int_max, _options) \
856 ((struct bt_le_per_adv_param[]) { \
857 BT_LE_PER_ADV_PARAM_INIT(_int_min, _int_max, _options) \
860#define BT_LE_PER_ADV_DEFAULT BT_LE_PER_ADV_PARAM(BT_GAP_PER_ADV_SLOW_INT_MIN, \
861 BT_GAP_PER_ADV_SLOW_INT_MAX, \
862 BT_LE_PER_ADV_OPT_NONE)
892 const struct bt_data *ad,
size_t ad_len,
893 const struct bt_data *sd,
size_t sd_len);
908 const struct bt_data *sd,
size_t sd_len);
935 struct bt_le_ext_adv **adv);
1024 const struct bt_data *ad,
size_t ad_len,
1025 const struct bt_data *sd,
size_t sd_len);
1133 const struct bt_data *ad,
size_t ad_len);
1244 void (*
synced)(
struct bt_le_per_adv_sync *sync,
1256 void (*
term)(
struct bt_le_per_adv_sync *sync,
1269 void (*
recv)(
struct bt_le_per_adv_sync *sync,
1448 struct bt_le_per_adv_sync **out_sync);
1569 const struct bt_conn *conn,
1586 const struct bt_conn *conn,
1603 const struct bt_conn *conn,
1680#define BT_LE_SCAN_OPT_FILTER_WHITELIST __DEPRECATED_MACRO BT_LE_SCAN_OPT_FILTER_ACCEPT_LIST
1793#define BT_LE_SCAN_PARAM_INIT(_type, _options, _interval, _window) \
1796 .options = (_options), \
1797 .interval = (_interval), \
1798 .window = (_window), \
1800 .interval_coded = 0, \
1801 .window_coded = 0, \
1813#define BT_LE_SCAN_PARAM(_type, _options, _interval, _window) \
1814 ((struct bt_le_scan_param[]) { \
1815 BT_LE_SCAN_PARAM_INIT(_type, _options, _interval, _window) \
1821#define BT_LE_SCAN_ACTIVE BT_LE_SCAN_PARAM(BT_LE_SCAN_TYPE_ACTIVE, \
1822 BT_LE_SCAN_OPT_FILTER_DUPLICATE, \
1823 BT_GAP_SCAN_FAST_INTERVAL, \
1824 BT_GAP_SCAN_FAST_WINDOW)
1832#define BT_LE_SCAN_PASSIVE BT_LE_SCAN_PARAM(BT_LE_SCAN_TYPE_PASSIVE, \
1833 BT_LE_SCAN_OPT_FILTER_DUPLICATE, \
1834 BT_GAP_SCAN_FAST_INTERVAL, \
1835 BT_GAP_SCAN_FAST_WINDOW)
1841#define BT_LE_SCAN_CODED_ACTIVE \
1842 BT_LE_SCAN_PARAM(BT_LE_SCAN_TYPE_ACTIVE, \
1843 BT_LE_SCAN_OPT_CODED | \
1844 BT_LE_SCAN_OPT_FILTER_DUPLICATE, \
1845 BT_GAP_SCAN_FAST_INTERVAL, \
1846 BT_GAP_SCAN_FAST_WINDOW)
1855#define BT_LE_SCAN_CODED_PASSIVE \
1856 BT_LE_SCAN_PARAM(BT_LE_SCAN_TYPE_PASSIVE, \
1857 BT_LE_SCAN_OPT_CODED | \
1858 BT_LE_SCAN_OPT_FILTER_DUPLICATE, \
1859 BT_GAP_SCAN_FAST_INTERVAL, \
1860 BT_GAP_SCAN_FAST_WINDOW)
Bluetooth device address definitions and utilities.
Bluetooth subsystem crypto APIs.
ZTEST_BMEM int count
Definition: main.c:33
Bluetooth Generic Access Profile defines and Assigned Numbers.
int bt_le_filter_accept_list_remove(const bt_addr_le_t *addr)
Remove device (LE) from filter accept list.
int bt_le_per_adv_sync_create(const struct bt_le_per_adv_sync_param *param, struct bt_le_per_adv_sync **out_sync)
Create a periodic advertising sync object.
void bt_id_get(bt_addr_le_t *addrs, size_t *count)
Get the currently configured identities.
int bt_le_per_adv_sync_recv_enable(struct bt_le_per_adv_sync *per_adv_sync)
Enables receiving periodic advertising reports for a sync.
int bt_le_per_adv_sync_transfer_unsubscribe(const struct bt_conn *conn)
Unsubscribe from periodic advertising sync transfers (PASTs).
int bt_disable(void)
Disable Bluetooth.
void bt_le_per_adv_sync_cb_register(struct bt_le_per_adv_sync_cb *cb)
Register periodic advertising sync callbacks.
int bt_le_per_adv_start(struct bt_le_ext_adv *adv)
Starts periodic advertising.
static int bt_le_whitelist_rem(const bt_addr_le_t *addr)
Definition: bluetooth.h:1953
int bt_le_per_adv_list_remove(const bt_addr_le_t *addr, uint8_t sid)
Remove a device from the periodic advertising list.
static int bt_le_whitelist_add(const bt_addr_le_t *addr)
Definition: bluetooth.h:1932
int bt_le_adv_stop(void)
Stop advertising.
int bt_le_ext_adv_update_param(struct bt_le_ext_adv *adv, const struct bt_le_adv_param *param)
Update advertising parameters.
int bt_le_per_adv_stop(struct bt_le_ext_adv *adv)
Stops periodic advertising.
int bt_le_ext_adv_stop(struct bt_le_ext_adv *adv)
Stop advertising with the given advertising set.
static int bt_le_whitelist_clear(void)
Definition: bluetooth.h:1972
int bt_le_per_adv_list_add(const bt_addr_le_t *addr, uint8_t sid)
Add a device to the periodic advertising list.
int bt_le_oob_get_local(uint8_t id, struct bt_le_oob *oob)
Get local LE Out of Band (OOB) information.
int bt_br_oob_get_local(struct bt_br_oob *oob)
Get BR/EDR local Out Of Band information.
uint16_t bt_get_appearance(void)
Get local Bluetooth appearance.
int bt_le_per_adv_sync_recv_disable(struct bt_le_per_adv_sync *per_adv_sync)
Disables receiving periodic advertising reports for a sync.
int bt_le_filter_accept_list_add(const bt_addr_le_t *addr)
Add device (LE) to filter accept list.
void bt_br_discovery_cb_t(struct bt_br_discovery_result *results, size_t count)
Callback type for reporting BR/EDR discovery (inquiry) results.
Definition: bluetooth.h:2112
int bt_br_discovery_stop(void)
Stop BR/EDR discovery.
int bt_le_per_adv_list_clear(void)
Clear the periodic advertising list.
int bt_le_ext_adv_delete(struct bt_le_ext_adv *adv)
Delete advertising set.
void bt_data_parse(struct net_buf_simple *ad, bool(*func)(struct bt_data *data, void *user_data), void *user_data)
Helper for parsing advertising (or EIR or OOB) data.
void(* bt_ready_cb_t)(int err)
Callback for notifying that Bluetooth has been enabled.
Definition: bluetooth.h:125
int bt_le_ext_adv_oob_get_local(struct bt_le_ext_adv *adv, struct bt_le_oob *oob)
Get local LE Out of Band (OOB) information.
int bt_configure_data_path(uint8_t dir, uint8_t id, uint8_t vs_config_len, const uint8_t *vs_config)
Configure vendor data path.
int bt_br_set_connectable(bool enable)
Enable/disable set controller in connectable state.
struct bt_le_per_adv_sync * bt_le_per_adv_sync_lookup_addr(const bt_addr_le_t *adv_addr, uint8_t sid)
Look up an existing periodic advertising sync object by advertiser address.
uint8_t bt_le_per_adv_sync_get_index(struct bt_le_per_adv_sync *per_adv_sync)
Get array index of an periodic advertising sync object.
int bt_le_adv_update_data(const struct bt_data *ad, size_t ad_len, const struct bt_data *sd, size_t sd_len)
Update advertising.
void bt_le_scan_cb_t(const bt_addr_le_t *addr, int8_t rssi, uint8_t adv_type, struct net_buf_simple *buf)
Callback type for reporting LE scan results.
Definition: bluetooth.h:1101
int bt_le_per_adv_sync_transfer_subscribe(const struct bt_conn *conn, const struct bt_le_per_adv_sync_transfer_param *param)
Subscribe to periodic advertising sync transfers (PASTs).
int bt_le_per_adv_sync_delete(struct bt_le_per_adv_sync *per_adv_sync)
Delete periodic advertising sync.
int bt_le_scan_stop(void)
Stop (LE) scanning.
int bt_le_per_adv_set_param(struct bt_le_ext_adv *adv, const struct bt_le_per_adv_param *param)
Set or update the periodic advertising parameters.
bool bt_is_ready(void)
Check if Bluetooth is ready.
void bt_foreach_bond(uint8_t id, void(*func)(const struct bt_bond_info *info, void *user_data), void *user_data)
Iterate through all existing bonds.
int bt_id_reset(uint8_t id, bt_addr_le_t *addr, uint8_t *irk)
Reset/reclaim an identity for reuse.
int bt_le_set_chan_map(uint8_t chan_map[5])
Set (LE) channel map.
int bt_le_per_adv_sync_get_info(struct bt_le_per_adv_sync *per_adv_sync, struct bt_le_per_adv_sync_info *info)
Get periodic adv sync information.
int bt_le_ext_adv_get_info(const struct bt_le_ext_adv *adv, struct bt_le_ext_adv_info *info)
Get advertising set info.
void bt_le_scan_cb_unregister(struct bt_le_scan_cb *cb)
Unregister scanner packet callbacks.
int bt_enable(bt_ready_cb_t cb)
Enable Bluetooth.
int bt_le_scan_start(const struct bt_le_scan_param *param, bt_le_scan_cb_t cb)
Start (LE) scanning.
int bt_le_filter_accept_list_clear(void)
Clear filter accept list.
int bt_set_name(const char *name)
Set Bluetooth Device Name.
int bt_le_per_adv_set_info_transfer(const struct bt_le_ext_adv *adv, const struct bt_conn *conn, uint16_t service_data)
Transfer the information about a periodic advertising set.
int bt_unpair(uint8_t id, const bt_addr_le_t *addr)
Clear pairing information.
int bt_le_ext_adv_create(const struct bt_le_adv_param *param, const struct bt_le_ext_adv_cb *cb, struct bt_le_ext_adv **adv)
Create advertising set.
int bt_le_adv_start(const struct bt_le_adv_param *param, const struct bt_data *ad, size_t ad_len, const struct bt_data *sd, size_t sd_len)
Start advertising.
int bt_br_set_discoverable(bool enable)
Enable/disable set controller in discoverable state.
int bt_le_ext_adv_set_data(struct bt_le_ext_adv *adv, const struct bt_data *ad, size_t ad_len, const struct bt_data *sd, size_t sd_len)
Set an advertising set's advertising or scan response data.
void bt_le_scan_cb_register(struct bt_le_scan_cb *cb)
Register scanner packet callbacks.
const char * bt_get_name(void)
Get Bluetooth Device Name.
int bt_le_ext_adv_start(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_start_param *param)
Start advertising with the given advertising set.
int bt_id_create(bt_addr_le_t *addr, uint8_t *irk)
Create a new identity.
uint8_t bt_le_ext_adv_get_index(struct bt_le_ext_adv *adv)
Get array index of an advertising set.
int bt_set_appearance(uint16_t new_appearance)
Set local Bluetooth appearance.
int bt_id_delete(uint8_t id)
Delete an identity.
int bt_br_discovery_start(const struct bt_br_discovery_param *param, struct bt_br_discovery_result *results, size_t count, bt_br_discovery_cb_t cb)
Start BR/EDR discovery.
int bt_le_per_adv_sync_transfer(const struct bt_le_per_adv_sync *per_adv_sync, const struct bt_conn *conn, uint16_t service_data)
Transfer the periodic advertising sync information to a peer device.
int bt_le_per_adv_set_data(const struct bt_le_ext_adv *adv, const struct bt_data *ad, size_t ad_len)
Set or update the periodic advertising data.
@ BT_LE_SCAN_OPT_FILTER_DUPLICATE
Definition: bluetooth.h:1664
@ BT_LE_SCAN_OPT_CODED
Definition: bluetooth.h:1670
@ BT_LE_SCAN_OPT_NO_1M
Disable scan on 1M phy.
Definition: bluetooth.h:1677
@ BT_LE_SCAN_OPT_NONE
Definition: bluetooth.h:1661
@ BT_LE_SCAN_OPT_FILTER_ACCEPT_LIST
Definition: bluetooth.h:1667
@ BT_LE_SCAN_TYPE_PASSIVE
Definition: bluetooth.h:1684
@ BT_LE_SCAN_TYPE_ACTIVE
Definition: bluetooth.h:1687
@ BT_LE_ADV_OPT_FORCE_NAME_IN_AD
Put GAP device name into advert data.
Definition: bluetooth.h:568
@ BT_LE_ADV_OPT_NOTIFY_SCAN_REQ
Definition: bluetooth.h:476
@ BT_LE_ADV_OPT_ANONYMOUS
Advertise without a device address (identity or RPA).
Definition: bluetooth.h:542
@ BT_LE_ADV_OPT_CONNECTABLE
Advertise as connectable.
Definition: bluetooth.h:391
@ BT_LE_ADV_OPT_USE_NAME
Definition: bluetooth.h:441
@ BT_LE_ADV_OPT_USE_IDENTITY
Advertise using identity address.
Definition: bluetooth.h:419
@ BT_LE_ADV_OPT_ONE_TIME
Advertise one time.
Definition: bluetooth.h:407
@ BT_LE_ADV_OPT_FILTER_SCAN_REQ
Definition: bluetooth.h:468
@ BT_LE_ADV_OPT_DISABLE_CHAN_39
Definition: bluetooth.h:558
@ BT_LE_ADV_OPT_NONE
Definition: bluetooth.h:381
@ BT_LE_ADV_OPT_DISABLE_CHAN_37
Definition: bluetooth.h:552
@ BT_LE_ADV_OPT_DISABLE_CHAN_38
Definition: bluetooth.h:555
@ BT_LE_ADV_OPT_DIR_ADDR_RPA
Directed advertising to privacy-enabled peer.
Definition: bluetooth.h:463
@ BT_LE_ADV_OPT_CODED
Advertise on the LE Coded PHY (Long Range).
Definition: bluetooth.h:535
@ BT_LE_ADV_OPT_FILTER_CONN
Definition: bluetooth.h:471
@ BT_LE_ADV_OPT_EXT_ADV
Advertise with extended advertising.
Definition: bluetooth.h:507
@ BT_LE_ADV_OPT_SCANNABLE
Support scan response data.
Definition: bluetooth.h:487
@ BT_LE_ADV_OPT_NO_2M
Disable use of LE 2M PHY on the secondary advertising channel.
Definition: bluetooth.h:523
@ BT_LE_ADV_OPT_USE_TX_POWER
Advertise with transmit power.
Definition: bluetooth.h:549
@ BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY
Low duty cycle directed advertising.
Definition: bluetooth.h:449
@ BT_LE_PER_ADV_SYNC_OPT_DONT_SYNC_AOD_2US
Definition: bluetooth.h:1341
@ BT_LE_PER_ADV_SYNC_OPT_SYNC_ONLY_CONST_TONE_EXT
Definition: bluetooth.h:1344
@ BT_LE_PER_ADV_SYNC_OPT_DONT_SYNC_AOD_1US
Definition: bluetooth.h:1338
@ BT_LE_PER_ADV_SYNC_OPT_FILTER_DUPLICATE
Definition: bluetooth.h:1332
@ BT_LE_PER_ADV_SYNC_OPT_DONT_SYNC_AOA
Definition: bluetooth.h:1335
@ BT_LE_PER_ADV_SYNC_OPT_REPORTING_INITIALLY_DISABLED
Disables periodic advertising reports.
Definition: bluetooth.h:1329
@ BT_LE_PER_ADV_SYNC_OPT_USE_PER_ADV_LIST
Use the periodic advertising list to sync with advertiser.
Definition: bluetooth.h:1322
@ BT_LE_PER_ADV_SYNC_OPT_NONE
Definition: bluetooth.h:1314
@ BT_LE_PER_ADV_SYNC_TRANSFER_OPT_SYNC_NO_AOA
No Angle of Arrival (AoA)
Definition: bluetooth.h:1513
@ BT_LE_PER_ADV_SYNC_TRANSFER_OPT_SYNC_NO_AOD_2US
No Angle of Departure (AoD) 2.
Definition: bluetooth.h:1529
@ BT_LE_PER_ADV_SYNC_TRANSFER_OPT_SYNC_NO_AOD_1US
No Angle of Departure (AoD) 1 us.
Definition: bluetooth.h:1521
@ BT_LE_PER_ADV_SYNC_TRANSFER_OPT_SYNC_ONLY_CTE
Definition: bluetooth.h:1532
@ BT_LE_PER_ADV_SYNC_TRANSFER_OPT_NONE
Definition: bluetooth.h:1506
@ BT_LE_PER_ADV_OPT_USE_TX_POWER
Advertise with transmit power.
Definition: bluetooth.h:650
@ BT_LE_PER_ADV_OPT_NONE
Definition: bluetooth.h:643
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition: util_macro.h:44
struct _snode sys_snode_t
Definition: slist.h:33
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
__INT8_TYPE__ int8_t
Definition: stdint.h:72
Definition: bluetooth.h:2214
bt_addr_le_t addr
Definition: bluetooth.h:2216
Definition: bluetooth.h:2116
uint8_t length
Definition: bluetooth.h:2120
bool limited
Definition: bluetooth.h:2123
BR/EDR discovery result structure.
Definition: bluetooth.h:2083
uint8_t eir[240]
Definition: bluetooth.h:2097
bt_addr_t addr
Definition: bluetooth.h:2088
int8_t rssi
Definition: bluetooth.h:2091
uint8_t cod[3]
Definition: bluetooth.h:2094
Definition: bluetooth.h:2158
bt_addr_t addr
Definition: bluetooth.h:2160
Bluetooth data.
Definition: bluetooth.h:342
uint8_t type
Definition: bluetooth.h:343
uint8_t data_len
Definition: bluetooth.h:344
const uint8_t * data
Definition: bluetooth.h:345
Definition: direction.h:104
Definition: bluetooth.h:572
uint32_t options
Definition: bluetooth.h:601
const bt_addr_le_t * peer
Directed advertising to peer.
Definition: bluetooth.h:636
uint8_t sid
Advertising Set Identifier, valid range 0x00 - 0x0f.
Definition: bluetooth.h:588
uint8_t secondary_max_skip
Secondary channel maximum skip count.
Definition: bluetooth.h:598
uint32_t interval_min
Definition: bluetooth.h:610
uint8_t id
Local identity.
Definition: bluetooth.h:581
uint32_t interval_max
Definition: bluetooth.h:619
Definition: bluetooth.h:78
void(* scanned)(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_scanned_info *info)
The advertising set has sent scan response data.
Definition: bluetooth.h:115
void(* connected)(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_connected_info *info)
The advertising set has accepted a new connection.
Definition: bluetooth.h:102
void(* sent)(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_sent_info *info)
The advertising set has finished sending adv data.
Definition: bluetooth.h:90
Definition: bluetooth.h:68
struct bt_conn * conn
Definition: bluetooth.h:70
Advertising set info structure.
Definition: bluetooth.h:1070
uint8_t id
Definition: bluetooth.h:1072
int8_t tx_power
Definition: bluetooth.h:1075
Definition: bluetooth.h:73
bt_addr_le_t * addr
Definition: bluetooth.h:75
Definition: bluetooth.h:63
uint8_t num_sent
Definition: bluetooth.h:65
Definition: bluetooth.h:937
uint16_t timeout
Advertiser timeout (N * 10 ms).
Definition: bluetooth.h:951
uint8_t num_events
Number of advertising events.
Definition: bluetooth.h:958
Definition: bluetooth.h:2006
uint8_t c[16]
Definition: bluetooth.h:2011
uint8_t r[16]
Definition: bluetooth.h:2008
Definition: bluetooth.h:2015
bt_addr_le_t addr
Definition: bluetooth.h:2019
struct bt_le_oob_sc_data le_sc_data
Definition: bluetooth.h:2022
Definition: bluetooth.h:653
uint16_t interval_min
Minimum Periodic Advertising Interval (N * 1.25 ms)
Definition: bluetooth.h:660
uint16_t interval_max
Maximum Periodic Advertising Interval (N * 1.25 ms)
Definition: bluetooth.h:668
uint32_t options
Definition: bluetooth.h:671
Definition: bluetooth.h:1233
sys_snode_t node
Definition: bluetooth.h:1308
void(* recv)(struct bt_le_per_adv_sync *sync, const struct bt_le_per_adv_sync_recv_info *info, struct net_buf_simple *buf)
Periodic advertising data received.
Definition: bluetooth.h:1269
void(* state_changed)(struct bt_le_per_adv_sync *sync, const struct bt_le_per_adv_sync_state_info *info)
The periodic advertising sync state has changed.
Definition: bluetooth.h:1283
void(* synced)(struct bt_le_per_adv_sync *sync, struct bt_le_per_adv_sync_synced_info *info)
The periodic advertising has been successfully synced.
Definition: bluetooth.h:1244
void(* biginfo)(struct bt_le_per_adv_sync *sync, const struct bt_iso_biginfo *biginfo)
BIGInfo advertising report received.
Definition: bluetooth.h:1296
void(* term)(struct bt_le_per_adv_sync *sync, const struct bt_le_per_adv_sync_term_info *info)
The periodic advertising sync has been terminated.
Definition: bluetooth.h:1256
void(* cte_report_cb)(struct bt_le_per_adv_sync *sync, struct bt_df_per_adv_sync_iq_samples_report const *info)
Callback for IQ samples report collected when sampling CTE received with periodic advertising PDU.
Definition: bluetooth.h:1305
Advertising set info structure.
Definition: bluetooth.h:1399
uint16_t interval
Definition: bluetooth.h:1407
uint8_t phy
Definition: bluetooth.h:1410
bt_addr_le_t addr
Definition: bluetooth.h:1401
uint8_t sid
Definition: bluetooth.h:1404
Definition: bluetooth.h:1347
uint16_t timeout
Synchronization timeout (N * 10 ms)
Definition: bluetooth.h:1382
uint32_t options
Definition: bluetooth.h:1365
uint8_t sid
Advertiser SID.
Definition: bluetooth.h:1362
bt_addr_le_t addr
Periodic Advertiser Address.
Definition: bluetooth.h:1354
uint16_t skip
Maximum event skip.
Definition: bluetooth.h:1374
Definition: bluetooth.h:1210
uint8_t cte_type
Definition: bluetooth.h:1224
uint8_t sid
Definition: bluetooth.h:1215
const bt_addr_le_t * addr
Definition: bluetooth.h:1212
int8_t tx_power
Definition: bluetooth.h:1218
int8_t rssi
Definition: bluetooth.h:1221
Definition: bluetooth.h:1228
bool recv_enabled
Definition: bluetooth.h:1230
Definition: bluetooth.h:1167
bool recv_enabled
Definition: bluetooth.h:1181
uint16_t interval
Definition: bluetooth.h:1175
uint8_t sid
Definition: bluetooth.h:1172
const bt_addr_le_t * addr
Definition: bluetooth.h:1169
uint8_t phy
Definition: bluetooth.h:1178
struct bt_conn * conn
Peer that transferred the periodic advertising sync.
Definition: bluetooth.h:1196
uint16_t service_data
Service Data provided by the peer when sync is transferred.
Definition: bluetooth.h:1188
Definition: bluetooth.h:1199
const bt_addr_le_t * addr
Definition: bluetooth.h:1201
uint8_t reason
Definition: bluetooth.h:1207
uint8_t sid
Definition: bluetooth.h:1204
Definition: bluetooth.h:1535
uint32_t options
Definition: bluetooth.h:1553
uint16_t timeout
Synchronization timeout (N * 10 ms)
Definition: bluetooth.h:1550
uint16_t skip
Maximum event skip.
Definition: bluetooth.h:1542
Definition: bluetooth.h:1767
void(* timeout)(void)
The scanner has stopped scanning after scan timeout.
Definition: bluetooth.h:1779
sys_snode_t node
Definition: bluetooth.h:1781
void(* recv)(const struct bt_le_scan_recv_info *info, struct net_buf_simple *buf)
Advertisement packet received callback.
Definition: bluetooth.h:1775
Definition: bluetooth.h:1691
uint8_t type
Definition: bluetooth.h:1693
uint16_t interval
Definition: bluetooth.h:1699
uint16_t window
Definition: bluetooth.h:1702
uint16_t timeout
Scan timeout (N * 10 ms)
Definition: bluetooth.h:1710
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS)
Definition: bluetooth.h:1717
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS)
Definition: bluetooth.h:1724
uint32_t options
Definition: bluetooth.h:1696
Definition: bluetooth.h:1728
uint16_t interval
Periodic advertising interval.
Definition: bluetooth.h:1757
int8_t tx_power
Definition: bluetooth.h:1744
uint8_t sid
Definition: bluetooth.h:1738
uint8_t primary_phy
Definition: bluetooth.h:1760
int8_t rssi
Definition: bluetooth.h:1741
const bt_addr_le_t * addr
Advertiser LE address and type.
Definition: bluetooth.h:1735
uint8_t secondary_phy
Definition: bluetooth.h:1763
uint8_t adv_type
Definition: bluetooth.h:1747
uint16_t adv_props
Definition: bluetooth.h:1750
Simple network buffer representation.
Definition: buf.h:83
static fdata_t data[2]
Definition: test_fifo_contexts.c:15
static int results[3]
Definition: timeout_order.c:16
static const intptr_t user_data[5]
Definition: main.c:590