Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
conn.h
Go to the documentation of this file.
1
4
5/*
6 * Copyright (c) 2015-2016 Intel Corporation
7 * Copyright (c) 2025 Nordic Semiconductor ASA
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
13
20
21#include <stdbool.h>
22#include <stdint.h>
23
29#include <zephyr/net_buf.h>
31#include <zephyr/sys/slist.h>
33#include <zephyr/toolchain.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
40struct bt_conn;
41
49
57#define BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
58{ \
59 .interval_min = (int_min), \
60 .interval_max = (int_max), \
61 .latency = (lat), \
62 .timeout = (to), \
63}
64
72#define BT_LE_CONN_PARAM(int_min, int_max, lat, to) \
73 ((struct bt_le_conn_param[]) { \
74 BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
75 })
76
82#define BT_LE_CONN_PARAM_DEFAULT \
83 BT_LE_CONN_PARAM(BT_GAP_INIT_CONN_INT_MIN, BT_GAP_INIT_CONN_INT_MAX, 0, \
84 BT_GAP_MS_TO_CONN_TIMEOUT(4000))
85
91
93enum {
96
99
102};
103
110
116#define BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
117{ \
118 .options = BT_CONN_LE_PHY_OPT_NONE, \
119 .pref_tx_phy = (_pref_tx_phy), \
120 .pref_rx_phy = (_pref_rx_phy), \
121}
122
128#define BT_CONN_LE_PHY_PARAM(_pref_tx_phy, _pref_rx_phy) \
129 ((struct bt_conn_le_phy_param []) { \
130 BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
131 })
132
134#define BT_CONN_LE_PHY_PARAM_1M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M, \
135 BT_GAP_LE_PHY_1M)
136
138#define BT_CONN_LE_PHY_PARAM_2M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_2M, \
139 BT_GAP_LE_PHY_2M)
140
142#define BT_CONN_LE_PHY_PARAM_CODED BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_CODED, \
143 BT_GAP_LE_PHY_CODED)
144
146#define BT_CONN_LE_PHY_PARAM_ALL BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M | \
147 BT_GAP_LE_PHY_2M | \
148 BT_GAP_LE_PHY_CODED, \
149 BT_GAP_LE_PHY_1M | \
150 BT_GAP_LE_PHY_2M | \
151 BT_GAP_LE_PHY_CODED)
152
164
172
178#define BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
179{ \
180 .tx_max_len = (_tx_max_len), \
181 .tx_max_time = (_tx_max_time), \
182}
183
189#define BT_CONN_LE_DATA_LEN_PARAM(_tx_max_len, _tx_max_time) \
190 ((struct bt_conn_le_data_len_param[]) { \
191 BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
192 })
193
195#define BT_LE_DATA_LEN_PARAM_DEFAULT \
196 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_DEFAULT, \
197 BT_GAP_DATA_TIME_DEFAULT)
198
200#define BT_LE_DATA_LEN_PARAM_MAX \
201 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_MAX, \
202 BT_GAP_DATA_TIME_MAX)
203
223
234
254
261#define BT_CONN_LE_MAX_CONN_INTERVAL_GROUPS 41
262
294
317
380
417
438
439#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL_IFS \
440 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
441 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK)
442
443#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL \
444 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
445 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK | \
446 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MCES_MASK)
447
448#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_CIS \
449 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_CIS_MASK | \
450 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MSS_CIS_MASK)
451
455#define BT_CONN_LE_FRAME_SPACE_MAX (10000U)
456
469
496
518
533
543
553
563
679
684
696#define BT_CONN_LE_CS_MODE_MAIN_MODE_PART(x) ((x) & 0x3)
697
712#define BT_CONN_LE_CS_MODE_SUB_MODE_PART(x) (((x) >> 4) & 0x3)
713
742
750
768
778
786
794
843
850
856
868
880
968
980struct bt_conn *bt_conn_ref(struct bt_conn *conn);
981
988void bt_conn_unref(struct bt_conn *conn);
989
1007 void (*func)(struct bt_conn *conn, void *data),
1008 void *data);
1009
1022struct bt_conn *bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer);
1023
1030const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
1031
1042uint8_t bt_conn_index(const struct bt_conn *conn);
1043
1058#if !defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
1059 union {
1064 __deprecated uint16_t interval;
1067 uint16_t _interval;
1069 };
1070#endif /* !CONFIG_BT_SHORTER_CONNECTION_INTERVALS */
1071
1074
1075#if defined(CONFIG_BT_USER_PHY_UPDATE)
1077#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
1078
1079#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
1080 /* Connection maximum single fragment parameters */
1082#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
1083
1084#if defined(CONFIG_BT_SUBRATING)
1085 /* Connection subrating parameters */
1086 const struct bt_conn_le_subrating_info *subrate;
1087#endif /* defined(CONFIG_BT_SUBRATING) */
1088};
1089
1097#define BT_CONN_INTERVAL_TO_MS(interval) ((interval) * 5U / 4U)
1098
1103#define BT_CONN_INTERVAL_TO_US(interval) ((interval) * 1250U)
1104
1109#define BT_CONN_SCI_INTERVAL_TO_US(_interval) ((_interval) * BT_HCI_LE_SCI_INTERVAL_UNIT_US)
1110
1114};
1115
1121
1122enum {
1125};
1126
1137
1155
1163
1173
1196
1199
1202};
1203
1213
1240
1253
1266
1267
1302
1321
1325
1335
1353
1366
1374int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info);
1375
1385bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type);
1386
1403int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info);
1404
1414int bt_conn_le_get_tx_power_level(struct bt_conn *conn,
1415 struct bt_conn_le_tx_power *tx_power_level);
1416
1427 struct bt_conn_le_tx_power *tx_power);
1428
1439 enum bt_conn_le_tx_power_phy phy);
1440
1452 bool local_enable,
1453 bool remote_enable);
1454
1467int bt_conn_le_set_path_loss_mon_param(struct bt_conn *conn,
1468 const struct bt_conn_le_path_loss_reporting_param *param);
1469
1483int bt_conn_le_set_path_loss_mon_enable(struct bt_conn *conn, bool enable);
1484
1500
1513int bt_conn_le_subrate_request(struct bt_conn *conn,
1514 const struct bt_conn_le_subrate_param *params);
1515
1534
1549
1563
1581int bt_conn_le_conn_rate_request(struct bt_conn *conn,
1582 const struct bt_conn_le_conn_rate_param *params);
1583
1600int bt_conn_le_read_all_remote_features(struct bt_conn *conn, uint8_t pages_requested);
1601
1616int bt_conn_le_frame_space_update(struct bt_conn *conn,
1617 const struct bt_conn_le_frame_space_update_param *params);
1618
1631int bt_conn_le_param_update(struct bt_conn *conn,
1632 const struct bt_le_conn_param *param);
1633
1642int bt_conn_le_data_len_update(struct bt_conn *conn,
1643 const struct bt_conn_le_data_len_param *param);
1644
1656int bt_conn_le_phy_update(struct bt_conn *conn,
1657 const struct bt_conn_le_phy_param *param);
1658
1671int bt_conn_le_set_default_phy(uint8_t pref_tx_phy, uint8_t pref_rx_phy);
1672
1695int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason);
1696
1697enum {
1700
1706
1714};
1715
1762
1769#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1770{ \
1771 .options = (_options), \
1772 .interval = (_interval), \
1773 .window = (_window), \
1774 .interval_coded = 0, \
1775 .window_coded = 0, \
1776 .timeout = 0, \
1777}
1778
1785#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \
1786 ((struct bt_conn_le_create_param[]) { \
1787 BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1788 })
1789
1793#define BT_CONN_LE_CREATE_CONN \
1794 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1795 BT_GAP_SCAN_FAST_INTERVAL, \
1796 BT_GAP_SCAN_FAST_INTERVAL)
1797
1802#define BT_CONN_LE_CREATE_CONN_AUTO \
1803 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1804 BT_GAP_SCAN_FAST_INTERVAL, \
1805 BT_GAP_SCAN_FAST_WINDOW)
1806
1830 const struct bt_conn_le_create_param *create_param,
1831 const struct bt_le_conn_param *conn_param,
1832 struct bt_conn **conn);
1833
1846
1866int bt_conn_le_create_synced(const struct bt_le_ext_adv *adv,
1867 const struct bt_conn_le_create_synced_param *synced_param,
1868 const struct bt_le_conn_param *conn_param, struct bt_conn **conn);
1869
1886 const struct bt_le_conn_param *conn_param);
1887
1893
1931int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec);
1932
1942bt_security_t bt_conn_get_security(const struct bt_conn *conn);
1943
1954uint8_t bt_conn_enc_key_size(const struct bt_conn *conn);
1955
1987
1992
2030
2032 /* The ID associated with the desired configuration (0 to 3) */
2034
2035 /* State of the CS procedure */
2037
2038 /* Antenna configuration index */
2040
2041 /* Transmit power level used for CS procedures (-127 to 20 dB; 0x7F if unavailable) */
2043
2044 /* Duration of each CS subevent in microseconds (1250 us to 4 s) */
2046
2047 /* Number of CS subevents anchored off the same ACL connection event (0x01 to 0x20) */
2049
2050 /* Time between consecutive CS subevents anchored off the same ACL connection event in
2051 * units of 0.625 ms
2052 */
2054
2055 /* Number of ACL connection events between consecutive CS event anchor points */
2057
2058 /* Number of ACL connection events between consecutive CS procedure anchor points */
2060
2061 /* Number of CS procedures to be scheduled (0 if procedures to continue until disabled) */
2063
2064 /* Maximum duration for each procedure in units of 0.625 ms (0x0001 to 0xFFFF) */
2066};
2067
2103 void (*connected)(struct bt_conn *conn, uint8_t err);
2104
2121 void (*disconnected)(struct bt_conn *conn, uint8_t reason);
2122
2136 void (*recycled)(void);
2137
2162 bool (*le_param_req)(struct bt_conn *conn,
2163 struct bt_le_conn_param *param);
2164
2175 void (*le_param_updated)(struct bt_conn *conn, uint16_t interval,
2176 uint16_t latency, uint16_t timeout);
2177#if defined(CONFIG_BT_SMP)
2187 void (*identity_resolved)(struct bt_conn *conn,
2188 const bt_addr_le_t *rpa,
2189 const bt_addr_le_t *identity);
2190#endif /* CONFIG_BT_SMP */
2191#if defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC)
2208 void (*security_changed)(struct bt_conn *conn, bt_security_t level,
2209 enum bt_security_err err);
2210#endif /* defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC) */
2211
2212#if defined(CONFIG_BT_REMOTE_INFO)
2221 void (*remote_info_available)(struct bt_conn *conn,
2222 struct bt_conn_remote_info *remote_info);
2223#endif /* defined(CONFIG_BT_REMOTE_INFO) */
2224
2225#if defined(CONFIG_BT_POWER_MODE_CONTROL)
2234 void (*br_mode_changed)(struct bt_conn *conn, uint8_t mode, uint16_t interval);
2235#endif /* CONFIG_BT_POWER_MODE_CONTROL */
2236
2237#if defined(CONFIG_BT_USER_PHY_UPDATE)
2246 void (*le_phy_updated)(struct bt_conn *conn,
2247 struct bt_conn_le_phy_info *param);
2248#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
2249
2250#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
2259 void (*le_data_len_updated)(struct bt_conn *conn,
2260 struct bt_conn_le_data_len_info *info);
2261#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
2262
2263#if defined(CONFIG_BT_DF_CONNECTION_CTE_RX)
2270 void (*cte_report_cb)(struct bt_conn *conn,
2271 const struct bt_df_conn_iq_samples_report *iq_report);
2272#endif /* CONFIG_BT_DF_CONNECTION_CTE_RX */
2273
2274#if defined(CONFIG_BT_TRANSMIT_POWER_CONTROL)
2286 void (*tx_power_report)(struct bt_conn *conn,
2287 const struct bt_conn_le_tx_power_report *report);
2288#endif /* CONFIG_BT_TRANSMIT_POWER_CONTROL */
2289
2290#if defined(CONFIG_BT_PATH_LOSS_MONITORING)
2300 void (*path_loss_threshold_report)(struct bt_conn *conn,
2301 const struct bt_conn_le_path_loss_threshold_report *report);
2302#endif /* CONFIG_BT_PATH_LOSS_MONITORING */
2303
2304#if defined(CONFIG_BT_SUBRATING)
2315 void (*subrate_changed)(struct bt_conn *conn,
2316 const struct bt_conn_le_subrate_changed *params);
2317#endif /* CONFIG_BT_SUBRATING */
2318
2319#if defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
2340 void (*conn_rate_changed)(struct bt_conn *conn, uint8_t status,
2341 const struct bt_conn_le_conn_rate_changed *params);
2342#endif /* CONFIG_BT_SHORTER_CONNECTION_INTERVALS */
2343
2344#if defined(CONFIG_BT_LE_EXTENDED_FEAT_SET)
2358 void (*read_all_remote_feat_complete)(
2359 struct bt_conn *conn,
2360 const struct bt_conn_le_read_all_remote_feat_complete *params);
2361#endif /* CONFIG_BT_LE_EXTENDED_FEAT_SET */
2362
2363#if defined(CONFIG_BT_FRAME_SPACE_UPDATE)
2378 void (*frame_space_updated)(
2379 struct bt_conn *conn,
2380 const struct bt_conn_le_frame_space_updated *params);
2381#endif /* CONFIG_BT_FRAME_SPACE_UPDATE */
2382
2383#if defined(CONFIG_BT_CHANNEL_SOUNDING)
2396 void (*le_cs_read_remote_capabilities_complete)(struct bt_conn *conn,
2397 uint8_t status,
2398 struct bt_conn_le_cs_capabilities *params);
2399
2412 void (*le_cs_read_remote_fae_table_complete)(struct bt_conn *conn,
2413 uint8_t status,
2414 struct bt_conn_le_cs_fae_table *params);
2415
2427 void (*le_cs_config_complete)(struct bt_conn *conn,
2428 uint8_t status,
2429 struct bt_conn_le_cs_config *config);
2430
2439 void (*le_cs_config_removed)(struct bt_conn *conn, uint8_t config_id);
2440
2449 void (*le_cs_subevent_data_available)(struct bt_conn *conn,
2450 struct bt_conn_le_cs_subevent_result *result);
2451
2462 void (*le_cs_security_enable_complete)(struct bt_conn *conn, uint8_t status);
2463
2475 void (*le_cs_procedure_enable_complete)(
2476 struct bt_conn *conn, uint8_t status,
2478
2479#endif
2480
2481#if defined(CONFIG_BT_CLASSIC)
2489 void (*role_changed)(struct bt_conn *conn, uint8_t status);
2490#endif
2491
2492#if defined(CONFIG_BT_CONN_DYNAMIC_CALLBACKS)
2494 sys_snode_t _node;
2495#endif
2496};
2497
2508
2521
2527#define BT_CONN_CB_DEFINE(_name) \
2528 static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
2529 _CONCAT(bt_conn_cb_, \
2530 _name))
2531
2538#if defined(CONFIG_BT_SECURITY_ERR_TO_STR)
2539const char *bt_security_err_to_str(enum bt_security_err err);
2540#else
2541static inline const char *bt_security_err_to_str(enum bt_security_err err)
2542{
2543 ARG_UNUSED(err);
2544
2545 return "";
2546}
2547#endif
2548
2559void bt_set_bondable(bool enable);
2560
2571
2595int bt_conn_set_bondable(struct bt_conn *conn, bool enable);
2596
2603void bt_le_oob_set_sc_flag(bool enable);
2604
2612
2626int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const uint8_t *tk);
2627
2647int bt_le_oob_set_sc_data(struct bt_conn *conn,
2648 const struct bt_le_oob_sc_data *oobd_local,
2649 const struct bt_le_oob_sc_data *oobd_remote);
2650
2667int bt_le_oob_get_sc_data(struct bt_conn *conn,
2668 const struct bt_le_oob_sc_data **oobd_local,
2669 const struct bt_le_oob_sc_data **oobd_remote);
2670
2675#define BT_PASSKEY_INVALID 0xffffffff
2676
2693__deprecated int bt_passkey_set(unsigned int passkey);
2694
2726
2727#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2757#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2758
2764#define BT_PASSKEY_RAND 0xffffffff
2765
2768#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2798 enum bt_security_err (*pairing_accept)(struct bt_conn *conn,
2799 const struct bt_conn_pairing_feat *const feat);
2800#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2801
2820 void (*passkey_display)(struct bt_conn *conn, unsigned int passkey);
2821
2822#if defined(CONFIG_BT_PASSKEY_KEYPRESS)
2844 void (*passkey_display_keypress)(struct bt_conn *conn,
2845 enum bt_conn_auth_keypress type);
2846#endif
2847
2866 void (*passkey_entry)(struct bt_conn *conn);
2867
2889 void (*passkey_confirm)(struct bt_conn *conn, unsigned int passkey);
2890
2907 void (*oob_data_request)(struct bt_conn *conn,
2908 struct bt_conn_oob_info *info);
2909
2922 void (*cancel)(struct bt_conn *conn);
2923
2942 void (*pairing_confirm)(struct bt_conn *conn);
2943
2944#if defined(CONFIG_BT_CLASSIC)
2963 void (*pincode_entry)(struct bt_conn *conn, bool highsec);
2964#endif
2965
2966#if defined(CONFIG_BT_APP_PASSKEY)
2987 uint32_t (*app_passkey)(struct bt_conn *conn);
2988#endif /* CONFIG_BT_APP_PASSKEY */
2989};
2990
3002 void (*pairing_complete)(struct bt_conn *conn, bool bonded);
3003
3009 void (*pairing_failed)(struct bt_conn *conn,
3010 enum bt_security_err reason);
3011
3020 void (*bond_deleted)(uint8_t id, const bt_addr_le_t *peer);
3021
3022#if defined(CONFIG_BT_CLASSIC)
3030 void (*br_bond_deleted)(const bt_addr_t *peer);
3031#endif /* CONFIG_BT_CLASSIC */
3032
3035};
3036
3047
3063int bt_conn_auth_cb_overlay(struct bt_conn *conn, const struct bt_conn_auth_cb *cb);
3064
3075
3085
3097int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
3098
3115int bt_conn_auth_keypress_notify(struct bt_conn *conn, enum bt_conn_auth_keypress type);
3116
3126int bt_conn_auth_cancel(struct bt_conn *conn);
3127
3138int bt_conn_auth_passkey_confirm(struct bt_conn *conn);
3139
3150int bt_conn_auth_pairing_confirm(struct bt_conn *conn);
3151
3163int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin);
3164
3169
3174#define BT_BR_CONN_PARAM_INIT(role_switch) \
3175{ \
3176 .allow_role_switch = (role_switch), \
3177}
3178
3183#define BT_BR_CONN_PARAM(role_switch) \
3184 ((struct bt_br_conn_param[]) { \
3185 BT_BR_CONN_PARAM_INIT(role_switch) \
3186 })
3187
3191#define BT_BR_CONN_PARAM_DEFAULT BT_BR_CONN_PARAM(true)
3192
3193
3206struct bt_conn *bt_conn_create_br(const bt_addr_t *peer,
3207 const struct bt_br_conn_param *param);
3208
3220struct bt_conn *bt_conn_lookup_addr_br(const bt_addr_t *peer);
3221
3228const bt_addr_t *bt_conn_get_dst_br(const struct bt_conn *conn);
3229
3240int bt_conn_br_switch_role(const struct bt_conn *conn, uint8_t role);
3241
3251int bt_conn_br_set_role_switch_enable(const struct bt_conn *conn, bool enable);
3252
3253#if defined(CONFIG_BT_POWER_MODE_CONTROL)
3265int bt_conn_br_enter_sniff_mode(struct bt_conn *conn, uint16_t min_interval,
3266 uint16_t max_interval, uint16_t attempt, uint16_t timeout);
3267
3274int bt_conn_br_exit_sniff_mode(struct bt_conn *conn);
3275#endif /* CONFIG_BT_POWER_MODE_CONTROL */
3276
3277#ifdef __cplusplus
3278}
3279#endif
3280
3284
3285#endif /* ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_ */
Bluetooth device address definitions and utilities.
Bluetooth subsystem core APIs.
Bluetooth Generic Access Profile defines and Assigned Numbers.
void bt_set_bondable(bool enable)
Enable/disable bonding.
struct bt_conn * bt_conn_ref(struct bt_conn *conn)
Increment a connection's reference count.
int bt_conn_le_get_remote_tx_power_level(struct bt_conn *conn, enum bt_conn_le_tx_power_phy phy)
Get remote (peer) transmit power level.
int bt_le_oob_get_sc_data(struct bt_conn *conn, const struct bt_le_oob_sc_data **oobd_local, const struct bt_le_oob_sc_data **oobd_remote)
Get OOB data used for LE Secure Connections (SC) pairing procedure.
bool bt_get_bondable(void)
Get bonding flag.
bt_conn_le_cs_role
Channel sounding role.
Definition conn.h:744
int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const uint8_t *tk)
Set OOB Temporary Key to be used for pairing.
struct bt_conn * bt_conn_lookup_addr_br(const bt_addr_t *peer)
Look up an existing BR connection by address.
int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason)
Disconnect from a remote device or cancel pending connection.
bt_conn_le_cs_capability_rtt_sounding
Supported Sounding Sequence RTT precision.
Definition conn.h:545
const bt_addr_t * bt_conn_get_dst_br(const struct bt_conn *conn)
Get destination (peer) address of a connection.
int bt_conn_auth_cb_register(const struct bt_conn_auth_cb *cb)
Register authentication callbacks.
struct bt_conn * bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer)
Look up an existing connection by address.
int bt_conn_auth_keypress_notify(struct bt_conn *conn, enum bt_conn_auth_keypress type)
Send Passkey Keypress Notification during pairing.
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
Get connection info.
int bt_conn_le_conn_rate_request(struct bt_conn *conn, const struct bt_conn_le_conn_rate_param *params)
Request New Connection Rate Parameters.
int bt_conn_le_read_min_conn_interval_groups(struct bt_conn_le_min_conn_interval_info *info)
Read Minimum Supported Connection Interval Groups.
bt_conn_le_cs_mode
Channel sounding mode (main and sub-mode)
Definition conn.h:725
bt_security_flag
Security Info Flags.
Definition conn.h:1157
bt_conn_le_cs_procedure_abort_reason
Procedure abort reason.
Definition conn.h:858
static const char * bt_security_err_to_str(enum bt_security_err err)
Converts a security error to string.
Definition conn.h:2541
int bt_passkey_set(unsigned int passkey)
Set a fixed passkey to be used for pairing.
bt_conn_le_cs_chsel_type
Channel sounding channel selection type.
Definition conn.h:780
int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
Reply with entered passkey.
int bt_conn_br_switch_role(const struct bt_conn *conn, uint8_t role)
Change the role of the conn.
int bt_conn_auth_pairing_confirm(struct bt_conn *conn)
Reply if incoming pairing was confirmed by user.
int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin)
Reply with entered PIN code.
int bt_conn_set_bondable(struct bt_conn *conn, bool enable)
Set/clear the bonding flag for a given connection.
void bt_conn_unref(struct bt_conn *conn)
Decrement a connection's reference count.
bt_security_t bt_conn_get_security(const struct bt_conn *conn)
Get security level for a connection.
bt_conn_le_cs_capability_rtt_random_payload
Supported Random Payload RTT precision.
Definition conn.h:555
bt_conn_auth_keypress
Passkey Keypress Notification type.
Definition conn.h:1359
void bt_conn_foreach(enum bt_conn_type type, void(*func)(struct bt_conn *conn, void *data), void *data)
Iterate through all bt_conn objects.
int bt_conn_create_auto_stop(void)
Stop automatic connect creation.
bt_conn_le_cs_subevent_abort_reason
Subevent abort reason.
Definition conn.h:870
int bt_conn_le_set_path_loss_mon_param(struct bt_conn *conn, const struct bt_conn_le_path_loss_reporting_param *param)
Set Path Loss Monitoring Parameters.
bt_conn_le_tx_power_phy
Definition conn.h:1241
int bt_conn_le_subrate_request(struct bt_conn *conn, const struct bt_conn_le_subrate_param *params)
Request New Subrating Parameters.
const bt_addr_le_t * bt_conn_get_dst(const struct bt_conn *conn)
Get destination (peer) address of a connection.
int bt_conn_le_set_default_phy(uint8_t pref_tx_phy, uint8_t pref_rx_phy)
Update the default PHY parameters to be used for all subsequent connections over the LE transport.
int bt_conn_auth_cb_overlay(struct bt_conn *conn, const struct bt_conn_auth_cb *cb)
Overlay authentication callbacks used for a given connection.
int bt_conn_auth_cancel(struct bt_conn *conn)
Cancel ongoing authenticated pairing.
int bt_conn_le_data_len_update(struct bt_conn *conn, const struct bt_conn_le_data_len_param *param)
Update the connection transmit data length parameters.
int bt_conn_le_create(const bt_addr_le_t *peer, const struct bt_conn_le_create_param *create_param, const struct bt_le_conn_param *conn_param, struct bt_conn **conn)
Initiate an LE connection to a remote device.
bt_conn_le_cs_subevent_done_status
Subevent done status.
Definition conn.h:852
int bt_conn_le_set_path_loss_mon_enable(struct bt_conn *conn, bool enable)
Enable or Disable Path Loss Monitoring.
bt_conn_state
Definition conn.h:1127
void bt_le_oob_set_legacy_flag(bool enable)
Allow/disallow remote legacy OOB data to be used for pairing.
int bt_conn_le_create_synced(const struct bt_le_ext_adv *adv, const struct bt_conn_le_create_synced_param *synced_param, const struct bt_le_conn_param *conn_param, struct bt_conn **conn)
Create a connection to a synced device.
bt_conn_le_cs_procedure_done_status
Procedure done status.
Definition conn.h:845
int bt_conn_le_read_min_conn_interval(uint16_t *min_interval_us)
Read Minimum Supported Connection Interval.
int bt_conn_le_set_tx_power_report_enable(struct bt_conn *conn, bool local_enable, bool remote_enable)
Enable transmit power reporting.
int bt_conn_le_get_tx_power_level(struct bt_conn *conn, struct bt_conn_le_tx_power *tx_power_level)
Get connection transmit power level.
int bt_conn_le_enhanced_get_tx_power_level(struct bt_conn *conn, struct bt_conn_le_tx_power *tx_power)
Get local enhanced connection transmit power level.
bt_security_err
Definition conn.h:1956
int bt_conn_cb_register(struct bt_conn_cb *cb)
Register connection callbacks.
bt_conn_le_cs_sync_phy
Channel sounding PHY used for CS sync.
Definition conn.h:770
int bt_conn_le_param_update(struct bt_conn *conn, const struct bt_le_conn_param *param)
Update the connection parameters.
int bt_conn_br_set_role_switch_enable(const struct bt_conn *conn, bool enable)
Enable/disable role switch of the connection by setting the connection's link policy.
int bt_conn_le_frame_space_update(struct bt_conn *conn, const struct bt_conn_le_frame_space_update_param *params)
Update frame space.
bt_conn_le_cs_tone_antenna_config_selection
CS Test Tone Antenna Config Selection.
Definition conn.h:2020
int bt_conn_auth_passkey_confirm(struct bt_conn *conn)
Reply if passkey was confirmed to match by user.
bt_conn_type
Connection Type.
Definition conn.h:520
int bt_conn_le_read_all_remote_features(struct bt_conn *conn, uint8_t pages_requested)
Read remote feature pages.
int bt_le_oob_set_sc_data(struct bt_conn *conn, const struct bt_le_oob_sc_data *oobd_local, const struct bt_le_oob_sc_data *oobd_remote)
Set OOB data during LE Secure Connections (SC) pairing procedure.
int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Get connection info for the remote device.
int bt_conn_auth_info_cb_register(struct bt_conn_auth_info_cb *cb)
Register authentication information callbacks.
int bt_conn_auth_info_cb_unregister(struct bt_conn_auth_info_cb *cb)
Unregister authentication information callbacks.
int bt_conn_le_subrate_set_defaults(const struct bt_conn_le_subrate_param *params)
Set Default Connection Subrating Parameters.
int bt_conn_le_conn_rate_set_defaults(const struct bt_conn_le_conn_rate_param *params)
Set Default Connection Rate Parameters.
void bt_le_oob_set_sc_flag(bool enable)
Allow/disallow remote LE SC OOB data to be used for pairing.
int bt_conn_cb_unregister(struct bt_conn_cb *cb)
Unregister connection callbacks.
uint8_t bt_conn_index(const struct bt_conn *conn)
Get array index of a connection.
#define BT_CONN_LE_MAX_CONN_INTERVAL_GROUPS
Maximum Connection Interval Groups possible.
Definition conn.h:261
int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec)
Set security level for a connection.
int bt_conn_le_phy_update(struct bt_conn *conn, const struct bt_conn_le_phy_param *param)
Update the connection PHY parameters.
bt_conn_le_frame_space_update_initiator
Frame space update initiator.
Definition conn.h:458
int bt_conn_le_create_auto(const struct bt_conn_le_create_param *create_param, const struct bt_le_conn_param *conn_param)
Automatically connect to remote devices in the filter accept list.
bt_security_t
Security level.
Definition conn.h:1139
bt_conn_le_cs_ch3c_shape
Channel sounding channel sequence shape.
Definition conn.h:788
bt_conn_le_cs_procedure_enable_state
Definition conn.h:1988
bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type)
Function to determine the type of a connection.
bt_conn_le_path_loss_zone
Path Loss zone that has been entered.
Definition conn.h:1311
struct bt_conn * bt_conn_create_br(const bt_addr_t *peer, const struct bt_br_conn_param *param)
Initiate an BR/EDR connection to a remote device.
bt_conn_le_cs_capability_rtt_aa_only
Supported AA-Only RTT precision.
Definition conn.h:535
uint8_t bt_conn_enc_key_size(const struct bt_conn *conn)
Get encryption key size.
bt_conn_le_cs_rtt_type
Channel sounding RTT type.
Definition conn.h:752
@ BT_CONN_LE_PHY_OPT_CODED_S2
LE Coded using S=2 coding preferred when transmitting.
Definition conn.h:98
@ BT_CONN_LE_PHY_OPT_CODED_S8
LE Coded using S=8 coding preferred when transmitting.
Definition conn.h:101
@ BT_CONN_LE_PHY_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:95
@ BT_CONN_LE_CS_ROLE_REFLECTOR
CS reflector role.
Definition conn.h:748
@ BT_CONN_LE_CS_ROLE_INITIATOR
CS initiator role.
Definition conn.h:746
@ BT_CONN_LE_CS_RTT_SOUNDING_150NS
150ns time-of-flight accuracy.
Definition conn.h:551
@ BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP
Sounding Sequence RTT variant is not supported.
Definition conn.h:547
@ BT_CONN_LE_CS_RTT_SOUNDING_10NS
10ns time-of-flight accuracy.
Definition conn.h:549
@ BT_CONN_LE_CS_MAIN_MODE_3_SUB_MODE_2
Main mode 3 (RTT and PBR), sub-mode 2 (PBR)
Definition conn.h:739
@ BT_CONN_LE_CS_MAIN_MODE_3_NO_SUB_MODE
Main mode 3 (RTT and PBR), sub-mode: unused.
Definition conn.h:731
@ BT_CONN_LE_CS_MAIN_MODE_1_NO_SUB_MODE
Main mode 1 (RTT), sub-mode: unused.
Definition conn.h:727
@ BT_CONN_LE_CS_MAIN_MODE_2_NO_SUB_MODE
Main mode 2 (PBR), sub-mode: unused.
Definition conn.h:729
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_1
Main mode 2 (PBR), sub-mode 1 (RTT)
Definition conn.h:733
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_3
Main mode 2 (PBR), sub-mode 3 (RTT and PBR)
Definition conn.h:736
@ BT_SECURITY_FLAG_OOB
Paired with Out of Band method.
Definition conn.h:1161
@ BT_SECURITY_FLAG_SC
Paired with Secure Connections.
Definition conn.h:1159
@ BT_CONN_LE_CS_PROCEDURE_ABORT_REQUESTED
Definition conn.h:860
@ BT_CONN_LE_CS_PROCEDURE_ABORT_TOO_FEW_CHANNELS
Definition conn.h:862
@ BT_CONN_LE_CS_PROCEDURE_NOT_ABORTED
Definition conn.h:859
@ BT_CONN_LE_CS_PROCEDURE_ABORT_UNSPECIFIED
Definition conn.h:866
@ BT_CONN_LE_CS_PROCEDURE_ABORT_CHMAP_INSTANT_PASSED
Definition conn.h:864
@ BT_CONN_LE_CS_CHSEL_TYPE_3C
Use Channel Selection Algorithm #3c for non-mode-0 CS steps.
Definition conn.h:784
@ BT_CONN_LE_CS_CHSEL_TYPE_3B
Use Channel Selection Algorithm #3b for non-mode-0 CS steps.
Definition conn.h:782
@ BT_CONN_LE_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:1699
@ BT_CONN_LE_OPT_NO_1M
Disable LE 1M PHY.
Definition conn.h:1713
@ BT_CONN_LE_OPT_CODED
Enable LE Coded PHY.
Definition conn.h:1705
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS
10ns time-of-flight accuracy.
Definition conn.h:559
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP
Random Payload RTT variant is not supported.
Definition conn.h:557
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_150NS
150ns time-of-flight accuracy.
Definition conn.h:561
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ERASED
Definition conn.h:1362
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ENTERED
Definition conn.h:1361
@ BT_CONN_AUTH_KEYPRESS_CLEARED
Definition conn.h:1363
@ BT_CONN_AUTH_KEYPRESS_ENTRY_STARTED
Definition conn.h:1360
@ BT_CONN_AUTH_KEYPRESS_ENTRY_COMPLETED
Definition conn.h:1364
@ BT_CONN_LE_CS_SUBEVENT_NOT_ABORTED
Definition conn.h:871
@ BT_CONN_LE_CS_SUBEVENT_ABORT_UNSPECIFIED
Definition conn.h:878
@ BT_CONN_LE_CS_SUBEVENT_ABORT_REQUESTED
Definition conn.h:872
@ BT_CONN_LE_CS_SUBEVENT_ABORT_SCHED_CONFLICT
Definition conn.h:876
@ BT_CONN_LE_CS_SUBEVENT_ABORT_NO_CS_SYNC
Definition conn.h:874
@ BT_CONN_LE_TX_POWER_PHY_NONE
Convenience macro for when no PHY is set.
Definition conn.h:1243
@ BT_CONN_LE_TX_POWER_PHY_CODED_S2
LE Coded PHY using S=2 coding.
Definition conn.h:1251
@ BT_CONN_LE_TX_POWER_PHY_CODED_S8
LE Coded PHY using S=8 coding.
Definition conn.h:1249
@ BT_CONN_LE_TX_POWER_PHY_1M
LE 1M PHY.
Definition conn.h:1245
@ BT_CONN_LE_TX_POWER_PHY_2M
LE 2M PHY.
Definition conn.h:1247
@ BT_CONN_LE_CS_SUBEVENT_ABORTED
Definition conn.h:854
@ BT_CONN_LE_CS_SUBEVENT_COMPLETE
Definition conn.h:853
@ BT_CONN_STATE_CONNECTING
Channel in connecting state.
Definition conn.h:1131
@ BT_CONN_STATE_CONNECTED
Channel connected and ready for upper layer traffic on it.
Definition conn.h:1133
@ BT_CONN_STATE_DISCONNECTED
Channel disconnected.
Definition conn.h:1129
@ BT_CONN_STATE_DISCONNECTING
Channel in disconnecting state.
Definition conn.h:1135
@ BT_CONN_LE_CS_PROCEDURE_ABORTED
Definition conn.h:848
@ BT_CONN_LE_CS_PROCEDURE_COMPLETE
Definition conn.h:846
@ BT_CONN_LE_CS_PROCEDURE_INCOMPLETE
Definition conn.h:847
@ BT_CONN_ROLE_PERIPHERAL
Definition conn.h:1124
@ BT_CONN_ROLE_CENTRAL
Definition conn.h:1123
@ BT_SECURITY_ERR_OOB_NOT_AVAILABLE
OOB data is not available.
Definition conn.h:1967
@ BT_SECURITY_ERR_AUTH_REQUIREMENT
The requested security level could not be reached.
Definition conn.h:1970
@ BT_SECURITY_ERR_KEY_REJECTED
Distributed Key Rejected.
Definition conn.h:1982
@ BT_SECURITY_ERR_UNSPECIFIED
Pairing failed but the exact reason could not be specified.
Definition conn.h:1985
@ BT_SECURITY_ERR_INVALID_PARAM
Invalid parameters.
Definition conn.h:1979
@ BT_SECURITY_ERR_PAIR_NOT_SUPPORTED
Pairing is not supported.
Definition conn.h:1973
@ BT_SECURITY_ERR_AUTH_FAIL
Authentication failed.
Definition conn.h:1961
@ BT_SECURITY_ERR_PIN_OR_KEY_MISSING
PIN or encryption key is missing.
Definition conn.h:1964
@ BT_SECURITY_ERR_SUCCESS
Security procedure successful.
Definition conn.h:1958
@ BT_SECURITY_ERR_PAIR_NOT_ALLOWED
Pairing is not allowed.
Definition conn.h:1976
@ BT_CONN_LE_CS_SYNC_1M_PHY
LE 1M PHY.
Definition conn.h:772
@ BT_CONN_LE_CS_SYNC_2M_PHY
LE 2M PHY.
Definition conn.h:774
@ BT_CONN_LE_CS_SYNC_2M_2BT_PHY
LE 2M 2BT PHY.
Definition conn.h:776
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B1
Definition conn.h:2021
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B2
Definition conn.h:2028
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B3
Definition conn.h:2026
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B4
Definition conn.h:2027
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B2
Definition conn.h:2025
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A3_B1
Definition conn.h:2023
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A4_B1
Definition conn.h:2024
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B1
Definition conn.h:2022
@ BT_CONN_TYPE_LE
LE Connection Type.
Definition conn.h:522
@ BT_CONN_TYPE_ALL
All Connection Type.
Definition conn.h:530
@ BT_CONN_TYPE_BR
BR/EDR Connection Type.
Definition conn.h:524
@ BT_CONN_TYPE_ISO
ISO Connection Type.
Definition conn.h:528
@ BT_CONN_TYPE_SCO
SCO Connection Type.
Definition conn.h:526
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Initiated by peer.
Definition conn.h:466
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Initiated by local controller.
Definition conn.h:463
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Initiated by local host.
Definition conn.h:460
@ BT_SECURITY_L4
Level 4: Authenticated Secure Connections and 128-bit key.
Definition conn.h:1149
@ BT_SECURITY_L0
Level 0: Only for BR/EDR special cases, like SDP.
Definition conn.h:1141
@ BT_SECURITY_L3
Level 3: Encryption and authentication (MITM).
Definition conn.h:1147
@ BT_SECURITY_FORCE_PAIR
Bit to force new pairing procedure, bit-wise OR with requested security level.
Definition conn.h:1153
@ BT_SECURITY_L1
Level 1: No encryption and no authentication.
Definition conn.h:1143
@ BT_SECURITY_L2
Level 2: Encryption and no authentication (no MITM).
Definition conn.h:1145
@ BT_CONN_LE_CS_CH3C_SHAPE_HAT
Use Hat shape for user-specified channel sequence.
Definition conn.h:790
@ BT_CONN_LE_CS_CH3C_SHAPE_X
Use X shape for user-specified channel sequence.
Definition conn.h:792
@ BT_CONN_LE_CS_PROCEDURES_ENABLED
Definition conn.h:1990
@ BT_CONN_LE_CS_PROCEDURES_DISABLED
Definition conn.h:1989
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_MIDDLE
Middle path loss zone entered.
Definition conn.h:1315
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_LOW
Low path loss zone entered.
Definition conn.h:1313
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_HIGH
High path loss zone entered.
Definition conn.h:1317
@ BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE
Path loss has become unavailable.
Definition conn.h:1319
@ BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP
AA-Only RTT variant is not supported.
Definition conn.h:537
@ BT_CONN_LE_CS_RTT_AA_ONLY_150NS
150ns time-of-flight accuracy.
Definition conn.h:541
@ BT_CONN_LE_CS_RTT_AA_ONLY_10NS
10ns time-of-flight accuracy.
Definition conn.h:539
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING
RTT with 96-bit sounding sequence.
Definition conn.h:758
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING
RTT with 32-bit sounding sequence.
Definition conn.h:756
@ BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM
RTT with 128-bit random sequence.
Definition conn.h:766
@ BT_CONN_LE_CS_RTT_TYPE_AA_ONLY
RTT AA only.
Definition conn.h:754
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM
RTT with 96-bit random sequence.
Definition conn.h:764
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM
RTT with 32-bit random sequence.
Definition conn.h:760
@ BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM
RTT with 64-bit random sequence.
Definition conn.h:762
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_NO_ABORT
Definition hci_types.h:3952
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Definition hci_types.h:2920
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT
Definition hci_types.h:3958
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3956
#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND
Definition hci_types.h:2760
#define BT_HCI_OP_LE_CS_SUB_MODE_1
Definition hci_types.h:2746
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3953
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT
Definition hci_types.h:3961
#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED
Definition hci_types.h:2731
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3959
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Definition hci_types.h:2921
#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED
Definition hci_types.h:2732
#define BT_HCI_OP_LE_CS_SUB_MODE_3
Definition hci_types.h:2748
#define BT_HCI_OP_LE_CS_ACI_6
Definition hci_types.h:2775
#define BT_HCI_OP_LE_CS_ACI_1
Definition hci_types.h:2770
#define BT_HCI_OP_LE_CS_MAIN_MODE_3
Definition hci_types.h:2744
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS
Definition hci_types.h:3954
#define BT_HCI_OP_LE_CS_MAIN_MODE_2
Definition hci_types.h:2743
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND
Definition hci_types.h:2756
#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY
Definition hci_types.h:2754
#define BT_HCI_OP_LE_CS_ACI_3
Definition hci_types.h:2772
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B
Definition hci_types.h:2795
#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND
Definition hci_types.h:2758
#define BT_HCI_OP_LE_CS_CS_SYNC_1M
Definition hci_types.h:2762
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED
Definition hci_types.h:3946
#define BT_HCI_OP_LE_CS_ACI_0
Definition hci_types.h:2769
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND
Definition hci_types.h:2755
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND
Definition hci_types.h:2759
#define BT_HCI_OP_LE_CS_ACI_2
Definition hci_types.h:2771
#define BT_HCI_LE_ZONE_ENTERED_MIDDLE
Definition hci_types.h:3715
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND
Definition hci_types.h:2757
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3962
#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT
Definition hci_types.h:2764
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED
Definition hci_types.h:3960
#define BT_HCI_OP_LE_CS_ACI_7
Definition hci_types.h:2776
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Definition hci_types.h:2922
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT
Definition hci_types.h:2798
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE
Definition hci_types.h:3944
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X
Definition hci_types.h:2799
#define BT_HCI_OP_LE_CS_ACI_5
Definition hci_types.h:2774
#define BT_HCI_OP_LE_CS_SUB_MODE_2
Definition hci_types.h:2747
#define BT_HCI_OP_LE_CS_CS_SYNC_2M
Definition hci_types.h:2763
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED
Definition hci_types.h:3955
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE
Definition hci_types.h:3948
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL
Definition hci_types.h:3945
#define BT_HCI_OP_LE_CS_ACI_4
Definition hci_types.h:2773
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C
Definition hci_types.h:2796
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED
Definition hci_types.h:3950
#define BT_HCI_OP_LE_CS_MAIN_MODE_1
Definition hci_types.h:2742
#define BT_HCI_LE_ZONE_ENTERED_HIGH
Definition hci_types.h:3716
#define BT_HCI_LE_ZONE_ENTERED_LOW
Definition hci_types.h:3714
#define BUILD_ASSERT(EXPR, MSG...)
Definition llvm.h:51
Buffer management.
#define bool
Definition stdbool.h:13
__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
Bluetooth LE Device Address.
Definition addr.h:49
Bluetooth Device Address.
Definition addr.h:40
Connection parameters for BR/EDR connections.
Definition conn.h:3166
bool allow_role_switch
Definition conn.h:3167
Authenticated pairing callback structure.
Definition conn.h:2767
void(* passkey_entry)(struct bt_conn *conn)
Request the user to enter a passkey.
Definition conn.h:2866
void(* passkey_display)(struct bt_conn *conn, unsigned int passkey)
Display a passkey to the user.
Definition conn.h:2820
void(* passkey_confirm)(struct bt_conn *conn, unsigned int passkey)
Request the user to confirm a passkey.
Definition conn.h:2889
enum bt_security_err(* pairing_accept)(struct bt_conn *conn, const struct bt_conn_pairing_feat *const feat)
Query to proceed incoming pairing or not.
Definition conn.h:2798
void(* pincode_entry)(struct bt_conn *conn, bool highsec)
Request the user to enter a passkey.
Definition conn.h:2963
void(* oob_data_request)(struct bt_conn *conn, struct bt_conn_oob_info *info)
Request the user to provide Out of Band (OOB) data.
Definition conn.h:2907
void(* pairing_confirm)(struct bt_conn *conn)
Request confirmation for an incoming pairing.
Definition conn.h:2942
void(* cancel)(struct bt_conn *conn)
Cancel the ongoing user request.
Definition conn.h:2922
Authenticated pairing information callback structure.
Definition conn.h:2992
void(* pairing_failed)(struct bt_conn *conn, enum bt_security_err reason)
notify that pairing process has failed.
Definition conn.h:3009
void(* pairing_complete)(struct bt_conn *conn, bool bonded)
notify that pairing procedure was complete.
Definition conn.h:3002
void(* bond_deleted)(uint8_t id, const bt_addr_le_t *peer)
Notify that bond has been deleted.
Definition conn.h:3020
void(* br_bond_deleted)(const bt_addr_t *peer)
Notify that bond of classic has been deleted.
Definition conn.h:3030
sys_snode_t node
Internally used field for list handling.
Definition conn.h:3034
BR/EDR Connection Info Structure.
Definition conn.h:1112
const bt_addr_t * dst
Destination (Remote) BR/EDR address.
Definition conn.h:1113
BR/EDR Connection Remote Info structure.
Definition conn.h:1205
uint8_t num_pages
Number of pages in the remote feature set.
Definition conn.h:1211
const uint8_t * features
Remote feature set (pages of bitmasks).
Definition conn.h:1208
Connection callback structure.
Definition conn.h:2078
void(* le_param_updated)(struct bt_conn *conn, uint16_t interval, uint16_t latency, uint16_t timeout)
The parameters for an LE connection have been updated.
Definition conn.h:2175
void(* le_data_len_updated)(struct bt_conn *conn, struct bt_conn_le_data_len_info *info)
The data length parameters of the connection has changed.
Definition conn.h:2259
void(* recycled)(void)
A connection object has been returned to the pool.
Definition conn.h:2136
bool(* le_param_req)(struct bt_conn *conn, struct bt_le_conn_param *param)
LE connection parameter update request.
Definition conn.h:2162
void(* role_changed)(struct bt_conn *conn, uint8_t status)
The role of the connection has changed.
Definition conn.h:2489
void(* disconnected)(struct bt_conn *conn, uint8_t reason)
A connection has been disconnected.
Definition conn.h:2121
void(* conn_rate_changed)(struct bt_conn *conn, uint8_t status, const struct bt_conn_le_conn_rate_changed *params)
LE Connection Rate Changed event.
Definition conn.h:2340
void(* connected)(struct bt_conn *conn, uint8_t err)
A new connection has been established.
Definition conn.h:2103
void(* le_phy_updated)(struct bt_conn *conn, struct bt_conn_le_phy_info *param)
The PHY of the connection has changed.
Definition conn.h:2246
void(* security_changed)(struct bt_conn *conn, bt_security_t level, enum bt_security_err err)
The security level of a connection has changed.
Definition conn.h:2208
void(* identity_resolved)(struct bt_conn *conn, const bt_addr_le_t *rpa, const bt_addr_le_t *identity)
Remote Identity Address has been resolved.
Definition conn.h:2187
void(* remote_info_available)(struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Remote information procedures has completed.
Definition conn.h:2221
Connection Info Structure.
Definition conn.h:1175
uint8_t id
Which local identity the connection was created with.
Definition conn.h:1181
struct bt_conn_le_info le
LE Connection specific Info.
Definition conn.h:1185
enum bt_conn_type type
Connection Type.
Definition conn.h:1177
struct bt_conn_br_info br
BR/EDR Connection specific Info.
Definition conn.h:1187
uint8_t role
Connection Role.
Definition conn.h:1179
struct bt_conn_sco_info sco
SCO Connection specific Info.
Definition conn.h:1189
struct bt_security_info security
Security specific info.
Definition conn.h:1194
enum bt_conn_state state
Connection state.
Definition conn.h:1192
Updated connection rate parameters.
Definition conn.h:382
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:408
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:415
uint16_t peripheral_latency
Peripheral latency.
Definition conn.h:401
uint32_t interval_us
Connection interval.
Definition conn.h:389
uint16_t subrate_factor
Connection subrate factor.
Definition conn.h:394
Connection rate parameters for LE connections.
Definition conn.h:319
uint16_t interval_min_125us
Minimum connection interval.
Definition conn.h:326
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:364
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:343
uint16_t interval_max_125us
Maximum connection interval.
Definition conn.h:333
uint16_t max_ce_len_125us
Maximum length of connection event.
Definition conn.h:378
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:357
uint16_t min_ce_len_125us
Minimum length of connection event.
Definition conn.h:371
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:338
uint16_t max_latency
Maximum Peripheral latency.
Definition conn.h:350
Definition conn.h:1716
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS)
Definition conn.h:1745
uint16_t window
Scan window (N * 0.625 ms)
Definition conn.h:1739
uint32_t options
Bit-field of create connection options.
Definition conn.h:1719
uint16_t timeout
Connection initiation timeout (N * 10 MS)
Definition conn.h:1760
uint16_t interval
Scan interval (N * 0.625 ms)
Definition conn.h:1729
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS)
Definition conn.h:1751
Definition conn.h:1834
const bt_addr_le_t * peer
Remote address.
Definition conn.h:1841
uint8_t subevent
The subevent where the connection will be initiated.
Definition conn.h:1844
Remote channel sounding capabilities for LE connections supporting CS.
Definition conn.h:565
uint16_t t_ip1_times_supported
Optional T_IP1 time durations during CS steps.
Definition conn.h:636
bool phase_based_nadm_random_supported
Phase-based normalized attack detector metric when a CS_SYNC with random sequence is received.
Definition conn.h:615
uint16_t t_fcs_times_supported
Optional T_FCS time durations during CS steps.
Definition conn.h:660
bool cs_without_fae_supported
Subfeature: CS with no Frequency Actuation Error.
Definition conn.h:621
uint8_t rtt_random_payload_n
Number of CS steps needed to achieve the accuracy requirements for RTT Random Payload.
Definition conn.h:607
bool cs_sync_2m_phy_supported
CS_SYNC LE 2M PHY.
Definition conn.h:617
enum bt_conn_le_cs_capability_rtt_aa_only rtt_aa_only_precision
RTT AA-Only.
Definition conn.h:585
uint8_t num_antennas_supported
Number of antennas.
Definition conn.h:575
uint8_t t_sw_time
Time in microseconds for the antenna switch period of the CS tones.
Definition conn.h:668
bool cs_sync_2m_2bt_phy_supported
CS_SYNC LE 2M 2BT PHY.
Definition conn.h:619
bool initiator_supported
Initiator role.
Definition conn.h:579
bool reflector_supported
Reflector role.
Definition conn.h:581
uint16_t t_pm_times_supported
Optional T_PM time durations during CS steps.
Definition conn.h:666
uint8_t num_config_supported
Number of CS configurations.
Definition conn.h:567
uint8_t rtt_sounding_n
Number of CS steps needed to achieve the accuracy requirements for RTT Sounding.
Definition conn.h:601
bool phase_based_nadm_sounding_supported
Phase-based normalized attack detector metric when a CS_SYNC with sounding sequence is received.
Definition conn.h:611
bool mode_3_supported
Mode-3.
Definition conn.h:583
bool chsel_alg_3c_supported
Subfeature: Channel Selection Algorithm #3c.
Definition conn.h:623
enum bt_conn_le_cs_capability_rtt_random_payload rtt_random_payload_precision
RTT Random Payload.
Definition conn.h:589
uint8_t rtt_aa_only_n
Number of CS steps needed to achieve the accuracy requirements for RTT AA Only.
Definition conn.h:595
uint8_t max_antenna_paths_supported
Maximum number of antenna paths.
Definition conn.h:577
enum bt_conn_le_cs_capability_rtt_sounding rtt_sounding_precision
RTT Sounding.
Definition conn.h:587
bool pbr_from_rtt_sounding_seq_supported
Subfeature: Phase-based Ranging from RTT sounding sequence.
Definition conn.h:625
uint8_t tx_snr_capability
Supported SNR levels used in RTT packets.
Definition conn.h:677
uint16_t max_consecutive_procedures_supported
Maximum number of consecutive CS procedures.
Definition conn.h:573
uint16_t t_ip2_times_supported
Optional T_IP2 time durations during CS steps.
Definition conn.h:647
Channel sounding configuration.
Definition conn.h:796
enum bt_conn_le_cs_rtt_type rtt_type
RTT type.
Definition conn.h:815
enum bt_conn_le_cs_sync_phy cs_sync_phy
CS Sync PHY.
Definition conn.h:817
uint8_t t_fcs_time_us
Time in microseconds for frequency changes.
Definition conn.h:833
uint8_t min_main_mode_steps
Minimum number of CS main mode steps to be executed before a submode step is executed.
Definition conn.h:802
uint8_t main_mode_repetition
Number of main mode steps taken from the end of the last CS subevent to be repeated at the beginning ...
Definition conn.h:809
uint8_t channel_map[10]
Channel map used for CS procedure Channels n = 0, 1, 23, 24, 25, 77, and 78 are not allowed and shall...
Definition conn.h:841
enum bt_conn_le_cs_chsel_type channel_selection_type
Channel selection type.
Definition conn.h:823
uint8_t t_ip2_time_us
Interlude time in microseconds between the CS tones.
Definition conn.h:831
uint8_t mode_0_steps
Number of CS mode-0 steps to be included at the beginning of each CS subevent.
Definition conn.h:811
uint8_t channel_map_repetition
The number of times the Channel_Map field will be cycled through for non-mode-0 steps within a CS pro...
Definition conn.h:821
enum bt_conn_le_cs_ch3c_shape ch3c_shape
User-specified channel sequence shape.
Definition conn.h:825
uint8_t t_ip1_time_us
Interlude time in microseconds between the RTT packets.
Definition conn.h:829
uint8_t id
CS configuration ID.
Definition conn.h:798
enum bt_conn_le_cs_mode mode
CS main and sub mode.
Definition conn.h:800
enum bt_conn_le_cs_role role
CS role.
Definition conn.h:813
uint8_t t_pm_time_us
Time in microseconds for the phase measurement period of the CS tones.
Definition conn.h:835
uint8_t ch3c_jump
Number of channels skipped in each rising and falling sequence.
Definition conn.h:827
uint8_t max_main_mode_steps
Maximum number of CS main mode steps to be executed before a submode step is executed.
Definition conn.h:804
Remote FAE Table for LE connections supporting CS.
Definition conn.h:681
int8_t * remote_fae_table
Definition conn.h:682
uint8_t config_id
Definition conn.h:2033
enum bt_conn_le_cs_tone_antenna_config_selection tone_antenna_config_selection
Definition conn.h:2039
uint8_t subevents_per_event
Definition conn.h:2048
uint16_t event_interval
Definition conn.h:2056
uint16_t subevent_interval
Definition conn.h:2053
uint16_t procedure_interval
Definition conn.h:2059
uint16_t procedure_count
Definition conn.h:2062
enum bt_conn_le_cs_procedure_enable_state state
Definition conn.h:2036
uint16_t max_procedure_len
Definition conn.h:2065
uint32_t subevent_len
Definition conn.h:2045
int8_t selected_tx_power
Definition conn.h:2042
Subevent data for LE connections supporting CS.
Definition conn.h:882
uint16_t procedure_counter
CS procedure count associated with these results.
Definition conn.h:903
struct bt_conn_le_cs_subevent_result::@320060245020174255122267056204140154173252004243 header
uint8_t num_antenna_paths
Number of antenna paths used during the phase measurement stage.
Definition conn.h:953
uint8_t num_steps_reported
Number of CS steps in the subevent.
Definition conn.h:956
enum bt_conn_le_cs_subevent_done_status subevent_done_status
Subevent status.
Definition conn.h:936
struct net_buf_simple * step_data_buf
Pointer to buffer containing step data.
Definition conn.h:966
uint16_t start_acl_conn_event
Starting ACL connection event counter.
Definition conn.h:897
enum bt_conn_le_cs_procedure_abort_reason procedure_abort_reason
Abort reason.
Definition conn.h:943
uint16_t frequency_compensation
Frequency compensation value in units of 0.01 ppm.
Definition conn.h:912
uint8_t abort_step
Step number, on which the subevent was aborted if subevent_done_status is BT_CONN_LE_CS_SUBEVENT_COMP...
Definition conn.h:961
uint8_t config_id
CS configuration identifier.
Definition conn.h:891
int8_t reference_power_level
Reference power level in dBm.
Definition conn.h:920
enum bt_conn_le_cs_procedure_done_status procedure_done_status
Procedure status.
Definition conn.h:922
enum bt_conn_le_cs_subevent_abort_reason subevent_abort_reason
Abort reason.
Definition conn.h:950
Connection data length information for LE connections.
Definition conn.h:154
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:158
uint16_t rx_max_len
Maximum Link Layer reception payload size in bytes.
Definition conn.h:160
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:156
uint16_t rx_max_time
Maximum Link Layer reception payload time in us.
Definition conn.h:162
Connection data length parameters for LE connections.
Definition conn.h:166
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:168
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:170
Frame space update params.
Definition conn.h:471
uint16_t spacing_types
Spacing types mask of the spacing types to be updated.
Definition conn.h:480
uint8_t phys
Phy mask of the PHYs to be updated.
Definition conn.h:475
uint16_t frame_space_min
Minimum frame space in microseconds.
Definition conn.h:487
uint16_t frame_space_max
Maximum frame space in microseconds.
Definition conn.h:494
Frame space updated callback params.
Definition conn.h:498
uint8_t status
HCI Status from LE Frame Space Update Complete event.
Definition conn.h:503
uint8_t phys
Phy mask of the PHYs updated.
Definition conn.h:511
uint16_t spacing_types
Spacing types mask of the spacing types updated.
Definition conn.h:516
uint16_t frame_space
Updated frame space in microseconds.
Definition conn.h:507
enum bt_conn_le_frame_space_update_initiator initiator
Initiator of the frame space update.
Definition conn.h:505
LE Connection Info Structure.
Definition conn.h:1045
const bt_addr_le_t * dst
Destination (Remote) Identity Address or remote Resolvable Private Address (RPA) before identity has ...
Definition conn.h:1051
const struct bt_conn_le_phy_info * phy
Definition conn.h:1076
const bt_addr_le_t * remote
Remote device address used during connection setup.
Definition conn.h:1055
const bt_addr_le_t * local
Local device address used during connection setup.
Definition conn.h:1053
uint32_t interval_us
Connection interval in microseconds.
Definition conn.h:1057
const bt_addr_le_t * src
Source (Local) Identity Address.
Definition conn.h:1047
uint16_t interval
Connection interval in units of 1.25 ms.
Definition conn.h:1064
uint16_t latency
Connection peripheral latency.
Definition conn.h:1072
const struct bt_conn_le_data_len_info * data_len
Definition conn.h:1081
uint16_t timeout
Connection supervision timeout.
Definition conn.h:1073
Minimum supported connection interval group.
Definition conn.h:271
uint16_t max_125us
Upper bound of group interval range.
Definition conn.h:285
uint16_t min_125us
Lower bound of group interval range.
Definition conn.h:278
uint16_t stride_125us
Increment between consecutive supported intervals.
Definition conn.h:292
Minimum supported connection interval information.
Definition conn.h:296
uint16_t min_supported_conn_interval_us
Minimum supported connection interval.
Definition conn.h:303
uint8_t num_groups
Number of interval groups.
Definition conn.h:310
struct bt_conn_le_min_conn_interval_group groups[41]
Array of supported connection interval groups.
Definition conn.h:315
LE Path Loss Monitoring Parameters Structure as defined in Core Spec.
Definition conn.h:1339
uint8_t high_threshold
High threshold for the path loss (dB).
Definition conn.h:1341
uint8_t low_threshold
Low threshold for the path loss (dB).
Definition conn.h:1345
uint16_t min_time_spent
Minimum time in number of connection events to be observed once the path loss crosses the threshold b...
Definition conn.h:1351
uint8_t high_hysteresis
Hysteresis value for the high threshold (dB).
Definition conn.h:1343
uint8_t low_hysteresis
Hysteresis value for the low threshold (dB).
Definition conn.h:1347
LE Path Loss Monitoring Threshold Change Report Structure.
Definition conn.h:1327
enum bt_conn_le_path_loss_zone zone
Path Loss zone as documented in Core Spec.
Definition conn.h:1330
uint8_t path_loss
Current path loss (dB).
Definition conn.h:1333
Connection PHY information for LE connections.
Definition conn.h:87
uint8_t rx_phy
Connection transmit PHY.
Definition conn.h:89
uint8_t tx_phy
Definition conn.h:88
Preferred PHY parameters for LE connections.
Definition conn.h:105
uint16_t options
Connection PHY options.
Definition conn.h:106
uint8_t pref_rx_phy
Bitmask of preferred receive PHYs.
Definition conn.h:108
uint8_t pref_tx_phy
Bitmask of preferred transmit PHYs.
Definition conn.h:107
Read all remote features complete callback params.
Definition conn.h:419
uint8_t status
HCI Status from LE Read All Remote Features Complete event.
Definition conn.h:424
uint8_t max_remote_page
Number of pages supported by remote device.
Definition conn.h:426
const uint8_t * features
Pointer to array of size 248, with feature bits of remote supported features.
Definition conn.h:436
uint8_t max_valid_page
Number of pages fetched from remote device.
Definition conn.h:428
LE Connection Remote Info Structure.
Definition conn.h:1198
const uint8_t * features
Remote LE feature set (bitmask).
Definition conn.h:1201
Updated subrating connection parameters for LE connections.
Definition conn.h:236
uint16_t factor
Connection subrate factor.
Definition conn.h:243
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:248
uint16_t peripheral_latency
Peripheral latency in units of subrated connection intervals.
Definition conn.h:250
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:252
uint8_t status
HCI Status from LE Subrate Changed event.
Definition conn.h:241
Connection subrating parameters for LE connections.
Definition conn.h:205
uint16_t max_latency
Maximum Peripheral latency in units of subrated connection intervals.
Definition conn.h:211
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:209
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:216
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:221
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:207
Subrating information for LE connections.
Definition conn.h:225
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:232
uint16_t factor
Connection subrate factor.
Definition conn.h:227
LE Transmit Power Reporting Structure.
Definition conn.h:1269
enum bt_conn_le_tx_power_phy phy
Phy of Transmit power reporting.
Definition conn.h:1277
int8_t delta
Change in transmit power level.
Definition conn.h:1300
uint8_t reason
Reason for Transmit power reporting, as documented in Core Spec.
Definition conn.h:1274
int8_t tx_power_level
Transmit power level.
Definition conn.h:1287
uint8_t tx_power_level_flag
Bit 0: Transmit power level is at minimum level.
Definition conn.h:1292
LE Transmit Power Level Structure.
Definition conn.h:1255
int8_t max_level
Output: maximum transmit power level.
Definition conn.h:1264
int8_t current_level
Output: current transmit power level.
Definition conn.h:1261
uint8_t phy
Input: 1M, 2M, Coded S2 or Coded S8.
Definition conn.h:1258
Info Structure for OOB pairing.
Definition conn.h:2696
enum bt_conn_oob_info::@037057234300046321114030012274214022016020174371 type
Type of OOB pairing method.
struct bt_conn_oob_info::@130100253371055064164065265224242172250032310014::@137243212311252224135110143302345157373056137006 lesc
LE Secure Connections OOB pairing parameters.
@ BT_CONN_OOB_NO_DATA
No OOB data requested.
Definition conn.h:2721
@ BT_CONN_OOB_LOCAL_ONLY
Local OOB data requested.
Definition conn.h:2712
@ BT_CONN_OOB_REMOTE_ONLY
Remote OOB data requested.
Definition conn.h:2715
@ BT_CONN_OOB_BOTH_PEERS
Both local and remote OOB data requested.
Definition conn.h:2718
enum bt_conn_oob_info::@130100253371055064164065265224242172250032310014::@137243212311252224135110143302345157373056137006::@216340163167243036111326111056201242022231353223 oob_config
OOB data configuration.
@ BT_CONN_OOB_LE_LEGACY
LE legacy pairing.
Definition conn.h:2700
@ BT_CONN_OOB_LE_SC
LE SC pairing.
Definition conn.h:2703
Pairing request and pairing response info structure.
Definition conn.h:2734
uint8_t resp_key_dist
Responder Key Distribution/Generation, Core Spec.
Definition conn.h:2755
uint8_t io_capability
IO Capability, Core Spec.
Definition conn.h:2736
uint8_t init_key_dist
Initiator Key Distribution/Generation, Core Spec.
Definition conn.h:2750
uint8_t max_enc_key_size
Maximum Encryption Key Size, Core Spec.
Definition conn.h:2745
uint8_t auth_req
AuthReq, Core Spec.
Definition conn.h:2742
uint8_t oob_data_flag
OOB data flag, Core Spec.
Definition conn.h:2739
Connection Remote Info Structure.
Definition conn.h:1219
uint8_t version
Remote Link Layer version.
Definition conn.h:1224
uint16_t subversion
Per-manufacturer unique revision.
Definition conn.h:1230
uint16_t manufacturer
Remote manufacturer identifier.
Definition conn.h:1227
uint8_t type
Connection Type.
Definition conn.h:1221
struct bt_conn_br_remote_info br
BR/EDR connection remote info.
Definition conn.h:1237
struct bt_conn_le_remote_info le
LE connection remote info.
Definition conn.h:1234
SCO Connection Info Structure.
Definition conn.h:1117
uint8_t link_type
SCO link type.
Definition conn.h:1118
uint8_t air_mode
SCO air mode (codec type)
Definition conn.h:1119
Definition direction.h:168
Connection parameters for LE connections.
Definition conn.h:43
uint16_t latency
Definition conn.h:46
uint16_t interval_max
Definition conn.h:45
uint16_t timeout
Definition conn.h:47
uint16_t interval_min
Definition conn.h:44
LE Secure Connections pairing Out of Band data.
Definition bluetooth.h:2750
Security Info Structure.
Definition conn.h:1165
uint8_t enc_key_size
Encryption Key Size.
Definition conn.h:1169
bt_security_t level
Security Level.
Definition conn.h:1167
enum bt_security_flag flags
Flags.
Definition conn.h:1171
Simple network buffer representation.
Definition net_buf.h:89
Macros to abstract toolchain specific capabilities.
Macro utilities.