Zephyr API Documentation 4.4.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
43struct bt_conn;
44
52
60#define BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
61{ \
62 .interval_min = (int_min), \
63 .interval_max = (int_max), \
64 .latency = (lat), \
65 .timeout = (to), \
66}
67
75#define BT_LE_CONN_PARAM(int_min, int_max, lat, to) \
76 ((struct bt_le_conn_param[]) { \
77 BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
78 })
79
85#define BT_LE_CONN_PARAM_DEFAULT \
86 BT_LE_CONN_PARAM(BT_GAP_INIT_CONN_INT_MIN, BT_GAP_INIT_CONN_INT_MAX, 0, \
87 BT_GAP_MS_TO_CONN_TIMEOUT(4000))
88
94
96enum {
99
102
105};
106
113
119#define BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
120{ \
121 .options = BT_CONN_LE_PHY_OPT_NONE, \
122 .pref_tx_phy = (_pref_tx_phy), \
123 .pref_rx_phy = (_pref_rx_phy), \
124}
125
131#define BT_CONN_LE_PHY_PARAM(_pref_tx_phy, _pref_rx_phy) \
132 ((struct bt_conn_le_phy_param []) { \
133 BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
134 })
135
137#define BT_CONN_LE_PHY_PARAM_1M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M, \
138 BT_GAP_LE_PHY_1M)
139
141#define BT_CONN_LE_PHY_PARAM_2M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_2M, \
142 BT_GAP_LE_PHY_2M)
143
145#define BT_CONN_LE_PHY_PARAM_CODED BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_CODED, \
146 BT_GAP_LE_PHY_CODED)
147
149#define BT_CONN_LE_PHY_PARAM_ALL BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M | \
150 BT_GAP_LE_PHY_2M | \
151 BT_GAP_LE_PHY_CODED, \
152 BT_GAP_LE_PHY_1M | \
153 BT_GAP_LE_PHY_2M | \
154 BT_GAP_LE_PHY_CODED)
155
167
175
181#define BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
182{ \
183 .tx_max_len = (_tx_max_len), \
184 .tx_max_time = (_tx_max_time), \
185}
186
192#define BT_CONN_LE_DATA_LEN_PARAM(_tx_max_len, _tx_max_time) \
193 ((struct bt_conn_le_data_len_param[]) { \
194 BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
195 })
196
198#define BT_LE_DATA_LEN_PARAM_DEFAULT \
199 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_DEFAULT, \
200 BT_GAP_DATA_TIME_DEFAULT)
201
203#define BT_LE_DATA_LEN_PARAM_MAX \
204 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_MAX, \
205 BT_GAP_DATA_TIME_MAX)
206
226
237
257
264#define BT_CONN_LE_MAX_CONN_INTERVAL_GROUPS 41
265
297
320
383
420
441
442#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL_IFS \
443 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
444 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK)
445
446#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL \
447 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
448 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK | \
449 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MCES_MASK)
450
451#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_CIS \
452 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_CIS_MASK | \
453 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MSS_CIS_MASK)
454
458#define BT_CONN_LE_FRAME_SPACE_MAX (10000U)
459
472
499
521
536
546
556
566
702
707
719#define BT_CONN_LE_CS_MODE_MAIN_MODE_PART(x) ((x) & 0x3)
720
735#define BT_CONN_LE_CS_MODE_SUB_MODE_PART(x) (((x) >> 4) & 0x3)
736
765
773
791
801
809
817
871
878
884
896
908
996
1008struct bt_conn *bt_conn_ref(struct bt_conn *conn);
1009
1016void bt_conn_unref(struct bt_conn *conn);
1017
1035 void (*func)(struct bt_conn *conn, void *data),
1036 void *data);
1037
1051
1058const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
1059
1070uint8_t bt_conn_index(const struct bt_conn *conn);
1071
1086#if !defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
1087 union {
1092 __deprecated uint16_t interval;
1095 uint16_t _interval;
1097 };
1098#endif /* !CONFIG_BT_SHORTER_CONNECTION_INTERVALS */
1099
1102
1103#if defined(CONFIG_BT_USER_PHY_UPDATE)
1105#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
1106
1107#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
1108 /* Connection maximum single fragment parameters */
1110#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
1111
1112#if defined(CONFIG_BT_SUBRATING)
1113 /* Connection subrating parameters */
1114 const struct bt_conn_le_subrating_info *subrate;
1115#endif /* defined(CONFIG_BT_SUBRATING) */
1116};
1117
1125#define BT_CONN_INTERVAL_TO_MS(interval) ((interval) * 5U / 4U)
1126
1131#define BT_CONN_INTERVAL_TO_US(interval) ((interval) * 1250U)
1132
1137#define BT_CONN_SCI_INTERVAL_TO_US(_interval) ((_interval) * BT_HCI_LE_SCI_INTERVAL_UNIT_US)
1138
1142};
1143
1149
1150enum {
1153};
1154
1165
1183
1191
1201
1224
1227
1230};
1231
1241
1268
1281
1294
1295
1330
1349
1353
1363
1381
1394
1402int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info);
1403
1405struct bt_conn_tmp_str {
1406 /* BT_ADDR_LE_STR_LEN covers both BR/EDR and LE string lengths */
1407 char str[BT_ADDR_LE_STR_LEN];
1408};
1409
1410struct bt_conn_tmp_str bt_conn_dst_tmp_str(const struct bt_conn *conn);
1412
1423#define bt_conn_dst_str(_conn) bt_conn_dst_tmp_str(_conn).str
1424
1434bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type);
1435
1452int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info);
1453
1464 struct bt_conn_le_tx_power *tx_power_level);
1465
1476 struct bt_conn_le_tx_power *tx_power);
1477
1488 enum bt_conn_le_tx_power_phy phy);
1489
1501 bool local_enable,
1502 bool remote_enable);
1503
1517 const struct bt_conn_le_path_loss_reporting_param *param);
1518
1532int bt_conn_le_set_path_loss_mon_enable(struct bt_conn *conn, bool enable);
1533
1549
1563 const struct bt_conn_le_subrate_param *params);
1564
1583
1598
1612
1631 const struct bt_conn_le_conn_rate_param *params);
1632
1649int bt_conn_le_read_all_remote_features(struct bt_conn *conn, uint8_t pages_requested);
1650
1666 const struct bt_conn_le_frame_space_update_param *params);
1667
1681 const struct bt_le_conn_param *param);
1682
1692 const struct bt_conn_le_data_len_param *param);
1693
1706 const struct bt_conn_le_phy_param *param);
1707
1720int bt_conn_le_set_default_phy(uint8_t pref_tx_phy, uint8_t pref_rx_phy);
1721
1744int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason);
1745
1746enum {
1749
1755
1763};
1764
1811
1818#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1819{ \
1820 .options = (_options), \
1821 .interval = (_interval), \
1822 .window = (_window), \
1823 .interval_coded = 0, \
1824 .window_coded = 0, \
1825 .timeout = 0, \
1826}
1827
1834#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \
1835 ((struct bt_conn_le_create_param[]) { \
1836 BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1837 })
1838
1842#define BT_CONN_LE_CREATE_CONN \
1843 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1844 BT_GAP_SCAN_FAST_INTERVAL, \
1845 BT_GAP_SCAN_FAST_INTERVAL)
1846
1851#define BT_CONN_LE_CREATE_CONN_AUTO \
1852 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1853 BT_GAP_SCAN_FAST_INTERVAL, \
1854 BT_GAP_SCAN_FAST_WINDOW)
1855
1879 const struct bt_conn_le_create_param *create_param,
1880 const struct bt_le_conn_param *conn_param,
1881 struct bt_conn **conn);
1882
1895
1916 const struct bt_conn_le_create_synced_param *synced_param,
1917 const struct bt_le_conn_param *conn_param, struct bt_conn **conn);
1918
1935 const struct bt_le_conn_param *conn_param);
1936
1942
1981
1992
2004
2036
2041
2079
2081 /* The ID associated with the desired configuration (0 to 3) */
2083
2084 /* State of the CS procedure */
2086
2087 /* Antenna configuration index */
2089
2090 /* Transmit power level used for CS procedures (-127 to 20 dB; 0x7F if unavailable) */
2092
2093 /* Duration of each CS subevent in microseconds (1250 us to 4 s) */
2095
2096 /* Number of CS subevents anchored off the same ACL connection event (0x01 to 0x20) */
2098
2099 /* Time between consecutive CS subevents anchored off the same ACL connection event in
2100 * units of 0.625 ms
2101 */
2103
2104 /* Number of ACL connection events between consecutive CS event anchor points */
2106
2107 /* Number of ACL connection events between consecutive CS procedure anchor points */
2109
2110 /* Number of CS procedures to be scheduled (0 if procedures to continue until disabled) */
2112
2113 /* Maximum duration for each procedure in units of 0.625 ms (0x0001 to 0xFFFF) */
2115};
2116
2152 void (*connected)(struct bt_conn *conn, uint8_t err);
2153
2170 void (*disconnected)(struct bt_conn *conn, uint8_t reason);
2171
2187 void (*recycled)(void);
2188
2213 bool (*le_param_req)(struct bt_conn *conn,
2214 struct bt_le_conn_param *param);
2215
2226 void (*le_param_updated)(struct bt_conn *conn, uint16_t interval,
2227 uint16_t latency, uint16_t timeout);
2228#if defined(CONFIG_BT_SMP)
2238 void (*identity_resolved)(struct bt_conn *conn,
2239 const bt_addr_le_t *rpa,
2240 const bt_addr_le_t *identity);
2241#endif /* CONFIG_BT_SMP */
2242#if defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC)
2259 void (*security_changed)(struct bt_conn *conn, bt_security_t level,
2260 enum bt_security_err err);
2261#endif /* defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC) */
2262
2263#if defined(CONFIG_BT_REMOTE_INFO)
2272 void (*remote_info_available)(struct bt_conn *conn,
2273 struct bt_conn_remote_info *remote_info);
2274#endif /* defined(CONFIG_BT_REMOTE_INFO) */
2275
2276#if defined(CONFIG_BT_POWER_MODE_CONTROL)
2285 void (*br_mode_changed)(struct bt_conn *conn, uint8_t mode, uint16_t interval);
2286#endif /* CONFIG_BT_POWER_MODE_CONTROL */
2287
2288#if defined(CONFIG_BT_USER_PHY_UPDATE)
2297 void (*le_phy_updated)(struct bt_conn *conn,
2298 struct bt_conn_le_phy_info *param);
2299#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
2300
2301#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
2310 void (*le_data_len_updated)(struct bt_conn *conn,
2311 struct bt_conn_le_data_len_info *info);
2312#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
2313
2314#if defined(CONFIG_BT_DF_CONNECTION_CTE_RX)
2321 void (*cte_report_cb)(struct bt_conn *conn,
2322 const struct bt_df_conn_iq_samples_report *iq_report);
2323#endif /* CONFIG_BT_DF_CONNECTION_CTE_RX */
2324
2325#if defined(CONFIG_BT_TRANSMIT_POWER_CONTROL)
2337 void (*tx_power_report)(struct bt_conn *conn,
2338 const struct bt_conn_le_tx_power_report *report);
2339#endif /* CONFIG_BT_TRANSMIT_POWER_CONTROL */
2340
2341#if defined(CONFIG_BT_PATH_LOSS_MONITORING)
2351 void (*path_loss_threshold_report)(struct bt_conn *conn,
2352 const struct bt_conn_le_path_loss_threshold_report *report);
2353#endif /* CONFIG_BT_PATH_LOSS_MONITORING */
2354
2355#if defined(CONFIG_BT_SUBRATING)
2366 void (*subrate_changed)(struct bt_conn *conn,
2367 const struct bt_conn_le_subrate_changed *params);
2368#endif /* CONFIG_BT_SUBRATING */
2369
2370#if defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
2391 void (*conn_rate_changed)(struct bt_conn *conn, uint8_t status,
2392 const struct bt_conn_le_conn_rate_changed *params);
2393#endif /* CONFIG_BT_SHORTER_CONNECTION_INTERVALS */
2394
2395#if defined(CONFIG_BT_LE_EXTENDED_FEAT_SET)
2409 void (*read_all_remote_feat_complete)(
2410 struct bt_conn *conn,
2411 const struct bt_conn_le_read_all_remote_feat_complete *params);
2412#endif /* CONFIG_BT_LE_EXTENDED_FEAT_SET */
2413
2414#if defined(CONFIG_BT_FRAME_SPACE_UPDATE)
2429 void (*frame_space_updated)(
2430 struct bt_conn *conn,
2431 const struct bt_conn_le_frame_space_updated *params);
2432#endif /* CONFIG_BT_FRAME_SPACE_UPDATE */
2433
2434#if defined(CONFIG_BT_CHANNEL_SOUNDING)
2447 void (*le_cs_read_remote_capabilities_complete)(struct bt_conn *conn,
2448 uint8_t status,
2449 struct bt_conn_le_cs_capabilities *params);
2450
2463 void (*le_cs_read_remote_fae_table_complete)(struct bt_conn *conn,
2464 uint8_t status,
2465 struct bt_conn_le_cs_fae_table *params);
2466
2478 void (*le_cs_config_complete)(struct bt_conn *conn,
2479 uint8_t status,
2480 struct bt_conn_le_cs_config *config);
2481
2490 void (*le_cs_config_removed)(struct bt_conn *conn, uint8_t config_id);
2491
2500 void (*le_cs_subevent_data_available)(struct bt_conn *conn,
2501 struct bt_conn_le_cs_subevent_result *result);
2502
2513 void (*le_cs_security_enable_complete)(struct bt_conn *conn, uint8_t status);
2514
2526 void (*le_cs_procedure_enable_complete)(
2527 struct bt_conn *conn, uint8_t status,
2529
2530#endif
2531
2532#if defined(CONFIG_BT_CLASSIC)
2540 void (*role_changed)(struct bt_conn *conn, uint8_t status);
2541#endif
2542
2543#if defined(CONFIG_BT_CONN_DYNAMIC_CALLBACKS)
2545 sys_snode_t _node;
2546#endif
2547};
2548
2559
2572
2578#define BT_CONN_CB_DEFINE(_name) \
2579 static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
2580 _CONCAT(bt_conn_cb_, \
2581 _name))
2582
2589#if defined(CONFIG_BT_SECURITY_ERR_TO_STR)
2590const char *bt_security_err_to_str(enum bt_security_err err);
2591#else
2592static inline const char *bt_security_err_to_str(enum bt_security_err err)
2593{
2594 ARG_UNUSED(err);
2595
2596 return "";
2597}
2598#endif
2599
2610void bt_set_bondable(bool enable);
2611
2622
2646int bt_conn_set_bondable(struct bt_conn *conn, bool enable);
2647
2654void bt_le_oob_set_sc_flag(bool enable);
2655
2663
2678int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const uint8_t *tk);
2679
2700 const struct bt_le_oob_sc_data *oobd_local,
2701 const struct bt_le_oob_sc_data *oobd_remote);
2702
2720 const struct bt_le_oob_sc_data **oobd_local,
2721 const struct bt_le_oob_sc_data **oobd_remote);
2722
2727#define BT_PASSKEY_INVALID 0xffffffff
2728
2745__deprecated int bt_passkey_set(unsigned int passkey);
2746
2778
2779#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2809#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2810
2816#define BT_PASSKEY_RAND 0xffffffff
2817
2820#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2850 enum bt_security_err (*pairing_accept)(struct bt_conn *conn,
2851 const struct bt_conn_pairing_feat *const feat);
2852#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2853
2872 void (*passkey_display)(struct bt_conn *conn, unsigned int passkey);
2873
2874#if defined(CONFIG_BT_PASSKEY_KEYPRESS)
2896 void (*passkey_display_keypress)(struct bt_conn *conn,
2897 enum bt_conn_auth_keypress type);
2898#endif
2899
2918 void (*passkey_entry)(struct bt_conn *conn);
2919
2941 void (*passkey_confirm)(struct bt_conn *conn, unsigned int passkey);
2942
2959 void (*oob_data_request)(struct bt_conn *conn,
2960 struct bt_conn_oob_info *info);
2961
2974 void (*cancel)(struct bt_conn *conn);
2975
2994 void (*pairing_confirm)(struct bt_conn *conn);
2995
2996#if defined(CONFIG_BT_CLASSIC)
3015 void (*pincode_entry)(struct bt_conn *conn, bool highsec);
3016#endif
3017
3018#if defined(CONFIG_BT_APP_PASSKEY)
3039 uint32_t (*app_passkey)(struct bt_conn *conn);
3040#endif /* CONFIG_BT_APP_PASSKEY */
3041};
3042
3054 void (*pairing_complete)(struct bt_conn *conn, bool bonded);
3055
3061 void (*pairing_failed)(struct bt_conn *conn,
3062 enum bt_security_err reason);
3063
3072 void (*bond_deleted)(uint8_t id, const bt_addr_le_t *peer);
3073
3074#if defined(CONFIG_BT_CLASSIC)
3082 void (*br_bond_deleted)(const bt_addr_t *peer);
3083#endif /* CONFIG_BT_CLASSIC */
3084
3087};
3088
3099
3115int bt_conn_auth_cb_overlay(struct bt_conn *conn, const struct bt_conn_auth_cb *cb);
3116
3127
3137
3149int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
3150
3168
3179
3191
3203
3215int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin);
3216
3221
3226#define BT_BR_CONN_PARAM_INIT(role_switch) \
3227{ \
3228 .allow_role_switch = (role_switch), \
3229}
3230
3235#define BT_BR_CONN_PARAM(role_switch) \
3236 ((struct bt_br_conn_param[]) { \
3237 BT_BR_CONN_PARAM_INIT(role_switch) \
3238 })
3239
3243#define BT_BR_CONN_PARAM_DEFAULT BT_BR_CONN_PARAM(true)
3244
3245
3259 const struct bt_br_conn_param *param);
3260
3273
3280const bt_addr_t *bt_conn_get_dst_br(const struct bt_conn *conn);
3281
3292int bt_conn_br_switch_role(const struct bt_conn *conn, uint8_t role);
3293
3303int bt_conn_br_set_role_switch_enable(const struct bt_conn *conn, bool enable);
3304
3305#if defined(CONFIG_BT_POWER_MODE_CONTROL)
3317int bt_conn_br_enter_sniff_mode(struct bt_conn *conn, uint16_t min_interval,
3318 uint16_t max_interval, uint16_t attempt, uint16_t timeout);
3319
3326int bt_conn_br_exit_sniff_mode(struct bt_conn *conn);
3327#endif /* CONFIG_BT_POWER_MODE_CONTROL */
3328
3339
3354
3355#ifdef __cplusplus
3356}
3357#endif
3358
3362
3363#endif /* ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_ */
Bluetooth device address definitions and utilities.
Bluetooth subsystem core APIs.
Bluetooth Generic Access Profile defines and Assigned Numbers.
#define BT_ADDR_LE_STR_LEN
Recommended length of user string buffer for Bluetooth LE address.
Definition addr.h:209
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:767
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:548
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:748
bt_security_flag
Security Info Flags.
Definition conn.h:1185
bt_conn_le_cs_procedure_abort_reason
Procedure abort reason.
Definition conn.h:886
static const char * bt_security_err_to_str(enum bt_security_err err)
Converts a security error to string.
Definition conn.h:2592
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:803
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:558
bt_conn_auth_keypress
Passkey Keypress Notification type.
Definition conn.h:1387
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:898
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:1269
int bt_conn_le_subrate_request(struct bt_conn *conn, const struct bt_conn_le_subrate_param *params)
Request New Subrating Parameters.
int bt_conn_br_get_supervision_timeout(struct bt_conn *conn, uint16_t *timeout)
Read BR/EDR supervision timeout.
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_br_set_supervision_timeout(struct bt_conn *conn, uint16_t timeout)
Set BR/EDR supervision timeout.
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:880
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:1155
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:873
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:2005
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:793
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:2069
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:523
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:264
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:461
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:1167
bt_conn_le_cs_ch3c_shape
Channel sounding channel sequence shape.
Definition conn.h:811
bt_conn_le_cs_procedure_enable_state
Definition conn.h:2037
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:1339
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:538
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:775
@ BT_CONN_LE_PHY_OPT_CODED_S2
LE Coded using S=2 coding preferred when transmitting.
Definition conn.h:101
@ BT_CONN_LE_PHY_OPT_CODED_S8
LE Coded using S=8 coding preferred when transmitting.
Definition conn.h:104
@ BT_CONN_LE_PHY_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:98
@ BT_CONN_LE_CS_ROLE_REFLECTOR
CS reflector role.
Definition conn.h:771
@ BT_CONN_LE_CS_ROLE_INITIATOR
CS initiator role.
Definition conn.h:769
@ BT_CONN_LE_CS_RTT_SOUNDING_150NS
150ns time-of-flight accuracy.
Definition conn.h:554
@ BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP
Sounding Sequence RTT variant is not supported.
Definition conn.h:550
@ BT_CONN_LE_CS_RTT_SOUNDING_10NS
10ns time-of-flight accuracy.
Definition conn.h:552
@ BT_CONN_LE_CS_MAIN_MODE_3_SUB_MODE_2
Main mode 3 (RTT and PBR), sub-mode 2 (PBR).
Definition conn.h:762
@ BT_CONN_LE_CS_MAIN_MODE_3_NO_SUB_MODE
Main mode 3 (RTT and PBR), sub-mode: unused.
Definition conn.h:754
@ BT_CONN_LE_CS_MAIN_MODE_1_NO_SUB_MODE
Main mode 1 (RTT), sub-mode: unused.
Definition conn.h:750
@ BT_CONN_LE_CS_MAIN_MODE_2_NO_SUB_MODE
Main mode 2 (PBR), sub-mode: unused.
Definition conn.h:752
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_1
Main mode 2 (PBR), sub-mode 1 (RTT).
Definition conn.h:756
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_3
Main mode 2 (PBR), sub-mode 3 (RTT and PBR).
Definition conn.h:759
@ BT_SECURITY_FLAG_OOB
Paired with Out of Band method.
Definition conn.h:1189
@ BT_SECURITY_FLAG_SC
Paired with Secure Connections.
Definition conn.h:1187
@ BT_CONN_LE_CS_PROCEDURE_ABORT_REQUESTED
Definition conn.h:888
@ BT_CONN_LE_CS_PROCEDURE_ABORT_TOO_FEW_CHANNELS
Definition conn.h:890
@ BT_CONN_LE_CS_PROCEDURE_NOT_ABORTED
Definition conn.h:887
@ BT_CONN_LE_CS_PROCEDURE_ABORT_UNSPECIFIED
Definition conn.h:894
@ BT_CONN_LE_CS_PROCEDURE_ABORT_CHMAP_INSTANT_PASSED
Definition conn.h:892
@ BT_CONN_LE_CS_CHSEL_TYPE_3C
Use Channel Selection Algorithm #3c for non-mode-0 CS steps.
Definition conn.h:807
@ BT_CONN_LE_CS_CHSEL_TYPE_3B
Use Channel Selection Algorithm #3b for non-mode-0 CS steps.
Definition conn.h:805
@ BT_CONN_LE_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:1748
@ BT_CONN_LE_OPT_NO_1M
Disable LE 1M PHY.
Definition conn.h:1762
@ BT_CONN_LE_OPT_CODED
Enable LE Coded PHY.
Definition conn.h:1754
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS
10ns time-of-flight accuracy.
Definition conn.h:562
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP
Random Payload RTT variant is not supported.
Definition conn.h:560
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_150NS
150ns time-of-flight accuracy.
Definition conn.h:564
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ERASED
Definition conn.h:1390
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ENTERED
Definition conn.h:1389
@ BT_CONN_AUTH_KEYPRESS_CLEARED
Definition conn.h:1391
@ BT_CONN_AUTH_KEYPRESS_ENTRY_STARTED
Definition conn.h:1388
@ BT_CONN_AUTH_KEYPRESS_ENTRY_COMPLETED
Definition conn.h:1392
@ BT_CONN_LE_CS_SUBEVENT_NOT_ABORTED
Definition conn.h:899
@ BT_CONN_LE_CS_SUBEVENT_ABORT_UNSPECIFIED
Definition conn.h:906
@ BT_CONN_LE_CS_SUBEVENT_ABORT_REQUESTED
Definition conn.h:900
@ BT_CONN_LE_CS_SUBEVENT_ABORT_SCHED_CONFLICT
Definition conn.h:904
@ BT_CONN_LE_CS_SUBEVENT_ABORT_NO_CS_SYNC
Definition conn.h:902
@ BT_CONN_LE_TX_POWER_PHY_NONE
Convenience macro for when no PHY is set.
Definition conn.h:1271
@ BT_CONN_LE_TX_POWER_PHY_CODED_S2
LE Coded PHY using S=2 coding.
Definition conn.h:1279
@ BT_CONN_LE_TX_POWER_PHY_CODED_S8
LE Coded PHY using S=8 coding.
Definition conn.h:1277
@ BT_CONN_LE_TX_POWER_PHY_1M
LE 1M PHY.
Definition conn.h:1273
@ BT_CONN_LE_TX_POWER_PHY_2M
LE 2M PHY.
Definition conn.h:1275
@ BT_CONN_LE_CS_SUBEVENT_ABORTED
Definition conn.h:882
@ BT_CONN_LE_CS_SUBEVENT_COMPLETE
Definition conn.h:881
@ BT_CONN_STATE_CONNECTING
Channel in connecting state.
Definition conn.h:1159
@ BT_CONN_STATE_CONNECTED
Channel connected and ready for upper layer traffic on it.
Definition conn.h:1161
@ BT_CONN_STATE_DISCONNECTED
Channel disconnected.
Definition conn.h:1157
@ BT_CONN_STATE_DISCONNECTING
Channel in disconnecting state.
Definition conn.h:1163
@ BT_CONN_LE_CS_PROCEDURE_ABORTED
Definition conn.h:876
@ BT_CONN_LE_CS_PROCEDURE_COMPLETE
Definition conn.h:874
@ BT_CONN_LE_CS_PROCEDURE_INCOMPLETE
Definition conn.h:875
@ BT_CONN_ROLE_PERIPHERAL
Definition conn.h:1152
@ BT_CONN_ROLE_CENTRAL
Definition conn.h:1151
@ BT_SECURITY_ERR_OOB_NOT_AVAILABLE
OOB data is not available.
Definition conn.h:2016
@ BT_SECURITY_ERR_AUTH_REQUIREMENT
The requested security level could not be reached.
Definition conn.h:2019
@ BT_SECURITY_ERR_KEY_REJECTED
Distributed Key Rejected.
Definition conn.h:2031
@ BT_SECURITY_ERR_UNSPECIFIED
Pairing failed but the exact reason could not be specified.
Definition conn.h:2034
@ BT_SECURITY_ERR_INVALID_PARAM
Invalid parameters.
Definition conn.h:2028
@ BT_SECURITY_ERR_PAIR_NOT_SUPPORTED
Pairing is not supported.
Definition conn.h:2022
@ BT_SECURITY_ERR_AUTH_FAIL
Authentication failed.
Definition conn.h:2010
@ BT_SECURITY_ERR_PIN_OR_KEY_MISSING
PIN or encryption key is missing.
Definition conn.h:2013
@ BT_SECURITY_ERR_SUCCESS
Security procedure successful.
Definition conn.h:2007
@ BT_SECURITY_ERR_PAIR_NOT_ALLOWED
Pairing is not allowed.
Definition conn.h:2025
@ BT_CONN_LE_CS_SYNC_1M_PHY
LE 1M PHY.
Definition conn.h:795
@ BT_CONN_LE_CS_SYNC_2M_PHY
LE 2M PHY.
Definition conn.h:797
@ BT_CONN_LE_CS_SYNC_2M_2BT_PHY
LE 2M 2BT PHY.
Definition conn.h:799
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B1
Definition conn.h:2070
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B2
Definition conn.h:2077
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B3
Definition conn.h:2075
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B4
Definition conn.h:2076
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B2
Definition conn.h:2074
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A3_B1
Definition conn.h:2072
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A4_B1
Definition conn.h:2073
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B1
Definition conn.h:2071
@ BT_CONN_TYPE_LE
LE Connection Type.
Definition conn.h:525
@ BT_CONN_TYPE_ALL
All Connection Type.
Definition conn.h:533
@ BT_CONN_TYPE_BR
BR/EDR Connection Type.
Definition conn.h:527
@ BT_CONN_TYPE_ISO
ISO Connection Type.
Definition conn.h:531
@ BT_CONN_TYPE_SCO
SCO Connection Type.
Definition conn.h:529
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Initiated by peer.
Definition conn.h:469
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Initiated by local controller.
Definition conn.h:466
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Initiated by local host.
Definition conn.h:463
@ BT_SECURITY_L4
Level 4: Authenticated Secure Connections and 128-bit key.
Definition conn.h:1177
@ BT_SECURITY_L0
Level 0: Only for BR/EDR special cases, like SDP.
Definition conn.h:1169
@ BT_SECURITY_L3
Level 3: Encryption and authentication (MITM).
Definition conn.h:1175
@ BT_SECURITY_FORCE_PAIR
Bit to force new pairing procedure, bit-wise OR with requested security level.
Definition conn.h:1181
@ BT_SECURITY_L1
Level 1: No encryption and no authentication.
Definition conn.h:1171
@ BT_SECURITY_L2
Level 2: Encryption and no authentication (no MITM).
Definition conn.h:1173
@ BT_CONN_LE_CS_CH3C_SHAPE_HAT
Use Hat shape for user-specified channel sequence.
Definition conn.h:813
@ BT_CONN_LE_CS_CH3C_SHAPE_X
Use X shape for user-specified channel sequence.
Definition conn.h:815
@ BT_CONN_LE_CS_PROCEDURES_ENABLED
Definition conn.h:2039
@ BT_CONN_LE_CS_PROCEDURES_DISABLED
Definition conn.h:2038
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_MIDDLE
Middle path loss zone entered.
Definition conn.h:1343
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_LOW
Low path loss zone entered.
Definition conn.h:1341
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_HIGH
High path loss zone entered.
Definition conn.h:1345
@ BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE
Path loss has become unavailable.
Definition conn.h:1347
@ BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP
AA-Only RTT variant is not supported.
Definition conn.h:540
@ BT_CONN_LE_CS_RTT_AA_ONLY_150NS
150ns time-of-flight accuracy.
Definition conn.h:544
@ BT_CONN_LE_CS_RTT_AA_ONLY_10NS
10ns time-of-flight accuracy.
Definition conn.h:542
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING
RTT with 96-bit sounding sequence.
Definition conn.h:781
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING
RTT with 32-bit sounding sequence.
Definition conn.h:779
@ BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM
RTT with 128-bit random sequence.
Definition conn.h:789
@ BT_CONN_LE_CS_RTT_TYPE_AA_ONLY
RTT AA only.
Definition conn.h:777
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM
RTT with 96-bit random sequence.
Definition conn.h:787
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM
RTT with 32-bit random sequence.
Definition conn.h:783
@ BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM
RTT with 64-bit random sequence.
Definition conn.h:785
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:4143
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Definition hci_types.h:3047
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT
Definition hci_types.h:4149
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:4147
#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND
Definition hci_types.h:2885
#define BT_HCI_OP_LE_CS_SUB_MODE_1
Definition hci_types.h:2871
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:4144
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT
Definition hci_types.h:4152
#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED
Definition hci_types.h:2856
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:4150
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Definition hci_types.h:3048
#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED
Definition hci_types.h:2857
#define BT_HCI_OP_LE_CS_SUB_MODE_3
Definition hci_types.h:2873
#define BT_HCI_OP_LE_CS_ACI_6
Definition hci_types.h:2900
#define BT_HCI_OP_LE_CS_ACI_1
Definition hci_types.h:2895
#define BT_HCI_OP_LE_CS_MAIN_MODE_3
Definition hci_types.h:2869
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS
Definition hci_types.h:4145
#define BT_HCI_OP_LE_CS_MAIN_MODE_2
Definition hci_types.h:2868
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND
Definition hci_types.h:2881
#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY
Definition hci_types.h:2879
#define BT_HCI_OP_LE_CS_ACI_3
Definition hci_types.h:2897
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B
Definition hci_types.h:2920
#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND
Definition hci_types.h:2883
#define BT_HCI_OP_LE_CS_CS_SYNC_1M
Definition hci_types.h:2887
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED
Definition hci_types.h:4137
#define BT_HCI_OP_LE_CS_ACI_0
Definition hci_types.h:2894
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND
Definition hci_types.h:2880
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND
Definition hci_types.h:2884
#define BT_HCI_OP_LE_CS_ACI_2
Definition hci_types.h:2896
#define BT_HCI_LE_ZONE_ENTERED_MIDDLE
Definition hci_types.h:3847
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND
Definition hci_types.h:2882
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:4153
#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT
Definition hci_types.h:2889
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED
Definition hci_types.h:4151
#define BT_HCI_OP_LE_CS_ACI_7
Definition hci_types.h:2901
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Definition hci_types.h:3049
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT
Definition hci_types.h:2923
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE
Definition hci_types.h:4135
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X
Definition hci_types.h:2924
#define BT_HCI_OP_LE_CS_ACI_5
Definition hci_types.h:2899
#define BT_HCI_OP_LE_CS_SUB_MODE_2
Definition hci_types.h:2872
#define BT_HCI_OP_LE_CS_CS_SYNC_2M
Definition hci_types.h:2888
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED
Definition hci_types.h:4146
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE
Definition hci_types.h:4139
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL
Definition hci_types.h:4136
#define BT_HCI_OP_LE_CS_ACI_4
Definition hci_types.h:2898
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C
Definition hci_types.h:2921
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED
Definition hci_types.h:4141
#define BT_HCI_OP_LE_CS_MAIN_MODE_1
Definition hci_types.h:2867
#define BT_HCI_LE_ZONE_ENTERED_HIGH
Definition hci_types.h:3848
#define BT_HCI_LE_ZONE_ENTERED_LOW
Definition hci_types.h:3846
#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:3218
bool allow_role_switch
Definition conn.h:3219
Authenticated pairing callback structure.
Definition conn.h:2819
void(* passkey_entry)(struct bt_conn *conn)
Request the user to enter a passkey.
Definition conn.h:2918
void(* passkey_display)(struct bt_conn *conn, unsigned int passkey)
Display a passkey to the user.
Definition conn.h:2872
void(* passkey_confirm)(struct bt_conn *conn, unsigned int passkey)
Request the user to confirm a passkey.
Definition conn.h:2941
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:2850
void(* pincode_entry)(struct bt_conn *conn, bool highsec)
Request the user to enter a passkey.
Definition conn.h:3015
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:2959
void(* pairing_confirm)(struct bt_conn *conn)
Request confirmation for an incoming pairing.
Definition conn.h:2994
void(* cancel)(struct bt_conn *conn)
Cancel the ongoing user request.
Definition conn.h:2974
Authenticated pairing information callback structure.
Definition conn.h:3044
void(* pairing_failed)(struct bt_conn *conn, enum bt_security_err reason)
notify that pairing process has failed.
Definition conn.h:3061
void(* pairing_complete)(struct bt_conn *conn, bool bonded)
notify that pairing procedure was complete.
Definition conn.h:3054
void(* bond_deleted)(uint8_t id, const bt_addr_le_t *peer)
Notify that bond has been deleted.
Definition conn.h:3072
void(* br_bond_deleted)(const bt_addr_t *peer)
Notify that bond of classic has been deleted.
Definition conn.h:3082
sys_snode_t node
Internally used field for list handling.
Definition conn.h:3086
BR/EDR Connection Info Structure.
Definition conn.h:1140
const bt_addr_t * dst
Destination (Remote) BR/EDR address.
Definition conn.h:1141
BR/EDR Connection Remote Info structure.
Definition conn.h:1233
uint8_t num_pages
Number of pages in the remote feature set.
Definition conn.h:1239
const uint8_t * features
Remote feature set (pages of bitmasks).
Definition conn.h:1236
Connection callback structure.
Definition conn.h:2127
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:2226
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:2310
void(* recycled)(void)
A connection object has been returned to the pool.
Definition conn.h:2187
bool(* le_param_req)(struct bt_conn *conn, struct bt_le_conn_param *param)
LE connection parameter update request.
Definition conn.h:2213
void(* role_changed)(struct bt_conn *conn, uint8_t status)
The role of the connection has changed.
Definition conn.h:2540
void(* disconnected)(struct bt_conn *conn, uint8_t reason)
A connection has been disconnected.
Definition conn.h:2170
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:2391
void(* connected)(struct bt_conn *conn, uint8_t err)
A new connection has been established.
Definition conn.h:2152
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:2297
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:2259
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:2238
void(* remote_info_available)(struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Remote information procedures has completed.
Definition conn.h:2272
Connection Info Structure.
Definition conn.h:1203
uint8_t id
Which local identity the connection was created with.
Definition conn.h:1209
struct bt_conn_le_info le
LE Connection specific Info.
Definition conn.h:1213
enum bt_conn_type type
Connection Type.
Definition conn.h:1205
struct bt_conn_br_info br
BR/EDR Connection specific Info.
Definition conn.h:1215
uint8_t role
Connection Role.
Definition conn.h:1207
struct bt_conn_sco_info sco
SCO Connection specific Info.
Definition conn.h:1217
struct bt_security_info security
Security specific info.
Definition conn.h:1222
enum bt_conn_state state
Connection state.
Definition conn.h:1220
Updated connection rate parameters.
Definition conn.h:385
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:411
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:418
uint16_t peripheral_latency
Peripheral latency.
Definition conn.h:404
uint32_t interval_us
Connection interval.
Definition conn.h:392
uint16_t subrate_factor
Connection subrate factor.
Definition conn.h:397
Connection rate parameters for LE connections.
Definition conn.h:322
uint16_t interval_min_125us
Minimum connection interval.
Definition conn.h:329
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:367
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:346
uint16_t interval_max_125us
Maximum connection interval.
Definition conn.h:336
uint16_t max_ce_len_125us
Maximum length of connection event.
Definition conn.h:381
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:360
uint16_t min_ce_len_125us
Minimum length of connection event.
Definition conn.h:374
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:341
uint16_t max_latency
Maximum Peripheral latency.
Definition conn.h:353
Definition conn.h:1765
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS).
Definition conn.h:1794
uint16_t window
Scan window (N * 0.625 ms).
Definition conn.h:1788
uint32_t options
Bit-field of create connection options.
Definition conn.h:1768
uint16_t timeout
Connection initiation timeout (N * 10 MS).
Definition conn.h:1809
uint16_t interval
Scan interval (N * 0.625 ms).
Definition conn.h:1778
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS).
Definition conn.h:1800
Definition conn.h:1883
const bt_addr_le_t * peer
Remote address.
Definition conn.h:1890
uint8_t subevent
The subevent where the connection will be initiated.
Definition conn.h:1893
Remote channel sounding capabilities for LE connections supporting CS.
Definition conn.h:568
uint16_t t_ip1_times_supported
Optional T_IP1 time durations during CS steps.
Definition conn.h:641
bool phase_based_nadm_random_supported
Phase-based normalized attack detector metric when a CS_SYNC with random sequence is received.
Definition conn.h:618
uint16_t t_fcs_times_supported
Optional T_FCS time durations during CS steps.
Definition conn.h:665
uint16_t t_ip2_ipt_times_supported
Supported T_IP2_IPT time durations during CS steps.
Definition conn.h:693
bool cs_without_fae_supported
Subfeature: CS with no Frequency Actuation Error.
Definition conn.h:624
uint8_t rtt_random_payload_n
Number of CS steps needed to achieve the accuracy requirements for RTT Random Payload.
Definition conn.h:610
bool cs_sync_2m_phy_supported
CS_SYNC LE 2M PHY.
Definition conn.h:620
enum bt_conn_le_cs_capability_rtt_aa_only rtt_aa_only_precision
RTT AA-Only.
Definition conn.h:588
uint8_t num_antennas_supported
Number of antennas.
Definition conn.h:578
uint8_t t_sw_time
Time in microseconds for the antenna switch period of the CS tones.
Definition conn.h:673
bool cs_sync_2m_2bt_phy_supported
CS_SYNC LE 2M 2BT PHY.
Definition conn.h:622
bool initiator_supported
Initiator role.
Definition conn.h:582
bool reflector_supported
Reflector role.
Definition conn.h:584
uint16_t t_pm_times_supported
Optional T_PM time durations during CS steps.
Definition conn.h:671
uint8_t num_config_supported
Number of CS configurations.
Definition conn.h:570
uint8_t rtt_sounding_n
Number of CS steps needed to achieve the accuracy requirements for RTT Sounding.
Definition conn.h:604
bool phase_based_nadm_sounding_supported
Phase-based normalized attack detector metric when a CS_SYNC with sounding sequence is received.
Definition conn.h:614
uint8_t t_sw_ipt_time_supported
Supported time in microseconds for the antenna switch period of the CS tones during IPT.
Definition conn.h:700
bool mode_3_supported
Mode-3.
Definition conn.h:586
bool chsel_alg_3c_supported
Subfeature: Channel Selection Algorithm #3c.
Definition conn.h:626
enum bt_conn_le_cs_capability_rtt_random_payload rtt_random_payload_precision
RTT Random Payload.
Definition conn.h:592
uint8_t rtt_aa_only_n
Number of CS steps needed to achieve the accuracy requirements for RTT AA Only.
Definition conn.h:598
uint8_t max_antenna_paths_supported
Maximum number of antenna paths.
Definition conn.h:580
enum bt_conn_le_cs_capability_rtt_sounding rtt_sounding_precision
RTT Sounding.
Definition conn.h:590
bool pbr_from_rtt_sounding_seq_supported
Subfeature: Phase-based Ranging from RTT sounding sequence.
Definition conn.h:628
uint8_t tx_snr_capability
Supported SNR levels used in RTT packets.
Definition conn.h:682
bool cs_ipt_reflector
Subfeature: IPT in the CS reflector.
Definition conn.h:630
uint16_t max_consecutive_procedures_supported
Maximum number of consecutive CS procedures.
Definition conn.h:576
uint16_t t_ip2_times_supported
Optional T_IP2 time durations during CS steps.
Definition conn.h:652
Channel sounding configuration.
Definition conn.h:819
enum bt_conn_le_cs_rtt_type rtt_type
RTT type.
Definition conn.h:838
enum bt_conn_le_cs_sync_phy cs_sync_phy
CS Sync PHY.
Definition conn.h:840
uint8_t t_fcs_time_us
Time in microseconds for frequency changes.
Definition conn.h:861
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:825
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:832
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:869
enum bt_conn_le_cs_chsel_type channel_selection_type
Channel selection type.
Definition conn.h:846
uint8_t t_ip2_time_us
Interlude time in microseconds between the CS tones.
Definition conn.h:859
uint8_t mode_0_steps
Number of CS mode-0 steps to be included at the beginning of each CS subevent.
Definition conn.h:834
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:844
enum bt_conn_le_cs_ch3c_shape ch3c_shape
User-specified channel sequence shape.
Definition conn.h:848
uint8_t t_ip1_time_us
Interlude time in microseconds between the RTT packets.
Definition conn.h:857
uint8_t id
CS configuration ID.
Definition conn.h:821
enum bt_conn_le_cs_mode mode
CS main and sub mode.
Definition conn.h:823
uint8_t cs_enhancements_1
CS enhancements 1 Bit 0 - IPT is enabled in the CS reflector.
Definition conn.h:855
enum bt_conn_le_cs_role role
CS role.
Definition conn.h:836
uint8_t t_pm_time_us
Time in microseconds for the phase measurement period of the CS tones.
Definition conn.h:863
uint8_t ch3c_jump
Number of channels skipped in each rising and falling sequence.
Definition conn.h:850
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:827
Remote FAE Table for LE connections supporting CS.
Definition conn.h:704
int8_t * remote_fae_table
Definition conn.h:705
uint8_t config_id
Definition conn.h:2082
enum bt_conn_le_cs_tone_antenna_config_selection tone_antenna_config_selection
Definition conn.h:2088
uint8_t subevents_per_event
Definition conn.h:2097
uint16_t event_interval
Definition conn.h:2105
uint16_t subevent_interval
Definition conn.h:2102
uint16_t procedure_interval
Definition conn.h:2108
uint16_t procedure_count
Definition conn.h:2111
enum bt_conn_le_cs_procedure_enable_state state
Definition conn.h:2085
uint16_t max_procedure_len
Definition conn.h:2114
uint32_t subevent_len
Definition conn.h:2094
int8_t selected_tx_power
Definition conn.h:2091
Subevent data for LE connections supporting CS.
Definition conn.h:910
uint16_t procedure_counter
CS procedure count associated with these results.
Definition conn.h:931
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:981
uint8_t num_steps_reported
Number of CS steps in the subevent.
Definition conn.h:984
enum bt_conn_le_cs_subevent_done_status subevent_done_status
Subevent status.
Definition conn.h:964
struct net_buf_simple * step_data_buf
Pointer to buffer containing step data.
Definition conn.h:994
uint16_t start_acl_conn_event
Starting ACL connection event counter.
Definition conn.h:925
enum bt_conn_le_cs_procedure_abort_reason procedure_abort_reason
Abort reason.
Definition conn.h:971
uint16_t frequency_compensation
Frequency compensation value in units of 0.01 ppm.
Definition conn.h:940
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:989
uint8_t config_id
CS configuration identifier.
Definition conn.h:919
int8_t reference_power_level
Reference power level in dBm.
Definition conn.h:948
enum bt_conn_le_cs_procedure_done_status procedure_done_status
Procedure status.
Definition conn.h:950
enum bt_conn_le_cs_subevent_abort_reason subevent_abort_reason
Abort reason.
Definition conn.h:978
Connection data length information for LE connections.
Definition conn.h:157
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:161
uint16_t rx_max_len
Maximum Link Layer reception payload size in bytes.
Definition conn.h:163
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:159
uint16_t rx_max_time
Maximum Link Layer reception payload time in us.
Definition conn.h:165
Connection data length parameters for LE connections.
Definition conn.h:169
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:171
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:173
Frame space update params.
Definition conn.h:474
uint16_t spacing_types
Spacing types mask of the spacing types to be updated.
Definition conn.h:483
uint8_t phys
Phy mask of the PHYs to be updated.
Definition conn.h:478
uint16_t frame_space_min
Minimum frame space in microseconds.
Definition conn.h:490
uint16_t frame_space_max
Maximum frame space in microseconds.
Definition conn.h:497
Frame space updated callback params.
Definition conn.h:501
uint8_t status
HCI Status from LE Frame Space Update Complete event.
Definition conn.h:506
uint8_t phys
Phy mask of the PHYs updated.
Definition conn.h:514
uint16_t spacing_types
Spacing types mask of the spacing types updated.
Definition conn.h:519
uint16_t frame_space
Updated frame space in microseconds.
Definition conn.h:510
enum bt_conn_le_frame_space_update_initiator initiator
Initiator of the frame space update.
Definition conn.h:508
LE Connection Info Structure.
Definition conn.h:1073
const bt_addr_le_t * dst
Destination (Remote) Identity Address or remote Resolvable Private Address (RPA) before identity has ...
Definition conn.h:1079
const struct bt_conn_le_phy_info * phy
Definition conn.h:1104
const bt_addr_le_t * remote
Remote device address used during connection setup.
Definition conn.h:1083
const bt_addr_le_t * local
Local device address used during connection setup.
Definition conn.h:1081
uint32_t interval_us
Connection interval in microseconds.
Definition conn.h:1085
const bt_addr_le_t * src
Source (Local) Identity Address.
Definition conn.h:1075
uint16_t interval
Connection interval in units of 1.25 ms.
Definition conn.h:1092
uint16_t latency
Connection peripheral latency.
Definition conn.h:1100
const struct bt_conn_le_data_len_info * data_len
Definition conn.h:1109
uint16_t timeout
Connection supervision timeout.
Definition conn.h:1101
Minimum supported connection interval group.
Definition conn.h:274
uint16_t max_125us
Upper bound of group interval range.
Definition conn.h:288
uint16_t min_125us
Lower bound of group interval range.
Definition conn.h:281
uint16_t stride_125us
Increment between consecutive supported intervals.
Definition conn.h:295
Minimum supported connection interval information.
Definition conn.h:299
uint16_t min_supported_conn_interval_us
Minimum supported connection interval.
Definition conn.h:306
uint8_t num_groups
Number of interval groups.
Definition conn.h:313
struct bt_conn_le_min_conn_interval_group groups[41]
Array of supported connection interval groups.
Definition conn.h:318
LE Path Loss Monitoring Parameters Structure as defined in Core Spec.
Definition conn.h:1367
uint8_t high_threshold
High threshold for the path loss (dB).
Definition conn.h:1369
uint8_t low_threshold
Low threshold for the path loss (dB).
Definition conn.h:1373
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:1379
uint8_t high_hysteresis
Hysteresis value for the high threshold (dB).
Definition conn.h:1371
uint8_t low_hysteresis
Hysteresis value for the low threshold (dB).
Definition conn.h:1375
LE Path Loss Monitoring Threshold Change Report Structure.
Definition conn.h:1355
enum bt_conn_le_path_loss_zone zone
Path Loss zone as documented in Core Spec.
Definition conn.h:1358
uint8_t path_loss
Current path loss (dB).
Definition conn.h:1361
Connection PHY information for LE connections.
Definition conn.h:90
uint8_t rx_phy
Connection transmit PHY.
Definition conn.h:92
uint8_t tx_phy
Definition conn.h:91
Preferred PHY parameters for LE connections.
Definition conn.h:108
uint16_t options
Connection PHY options.
Definition conn.h:109
uint8_t pref_rx_phy
Bitmask of preferred receive PHYs.
Definition conn.h:111
uint8_t pref_tx_phy
Bitmask of preferred transmit PHYs.
Definition conn.h:110
Read all remote features complete callback params.
Definition conn.h:422
uint8_t status
HCI Status from LE Read All Remote Features Complete event.
Definition conn.h:427
uint8_t max_remote_page
Number of pages supported by remote device.
Definition conn.h:429
const uint8_t * features
Pointer to array of size 248, with feature bits of remote supported features.
Definition conn.h:439
uint8_t max_valid_page
Number of pages fetched from remote device.
Definition conn.h:431
LE Connection Remote Info Structure.
Definition conn.h:1226
const uint8_t * features
Remote LE feature set (bitmask).
Definition conn.h:1229
Updated subrating connection parameters for LE connections.
Definition conn.h:239
uint16_t factor
Connection subrate factor.
Definition conn.h:246
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:251
uint16_t peripheral_latency
Peripheral latency in units of subrated connection intervals.
Definition conn.h:253
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:255
uint8_t status
HCI Status from LE Subrate Changed event.
Definition conn.h:244
Connection subrating parameters for LE connections.
Definition conn.h:208
uint16_t max_latency
Maximum Peripheral latency in units of subrated connection intervals.
Definition conn.h:214
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:212
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:219
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:224
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:210
Subrating information for LE connections.
Definition conn.h:228
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:235
uint16_t factor
Connection subrate factor.
Definition conn.h:230
LE Transmit Power Reporting Structure.
Definition conn.h:1297
enum bt_conn_le_tx_power_phy phy
Phy of Transmit power reporting.
Definition conn.h:1305
int8_t delta
Change in transmit power level.
Definition conn.h:1328
uint8_t reason
Reason for Transmit power reporting, as documented in Core Spec.
Definition conn.h:1302
int8_t tx_power_level
Transmit power level.
Definition conn.h:1315
uint8_t tx_power_level_flag
Bit 0: Transmit power level is at minimum level.
Definition conn.h:1320
LE Transmit Power Level Structure.
Definition conn.h:1283
int8_t max_level
Output: maximum transmit power level.
Definition conn.h:1292
int8_t current_level
Output: current transmit power level.
Definition conn.h:1289
uint8_t phy
Input: 1M, 2M, Coded S2 or Coded S8.
Definition conn.h:1286
Info Structure for OOB pairing.
Definition conn.h:2748
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:2773
@ BT_CONN_OOB_LOCAL_ONLY
Local OOB data requested.
Definition conn.h:2764
@ BT_CONN_OOB_REMOTE_ONLY
Remote OOB data requested.
Definition conn.h:2767
@ BT_CONN_OOB_BOTH_PEERS
Both local and remote OOB data requested.
Definition conn.h:2770
enum bt_conn_oob_info::@130100253371055064164065265224242172250032310014::@137243212311252224135110143302345157373056137006::@216340163167243036111326111056201242022231353223 oob_config
OOB data configuration.
@ BT_CONN_OOB_LE_LEGACY
LE legacy pairing.
Definition conn.h:2752
@ BT_CONN_OOB_LE_SC
LE SC pairing.
Definition conn.h:2755
Pairing request and pairing response info structure.
Definition conn.h:2786
uint8_t resp_key_dist
Responder Key Distribution/Generation, Core Spec.
Definition conn.h:2807
uint8_t io_capability
IO Capability, Core Spec.
Definition conn.h:2788
uint8_t init_key_dist
Initiator Key Distribution/Generation, Core Spec.
Definition conn.h:2802
uint8_t max_enc_key_size
Maximum Encryption Key Size, Core Spec.
Definition conn.h:2797
uint8_t auth_req
AuthReq, Core Spec.
Definition conn.h:2794
uint8_t oob_data_flag
OOB data flag, Core Spec.
Definition conn.h:2791
Connection Remote Info Structure.
Definition conn.h:1247
uint8_t version
Remote Link Layer version.
Definition conn.h:1252
uint16_t subversion
Per-manufacturer unique revision.
Definition conn.h:1258
uint16_t manufacturer
Remote manufacturer identifier.
Definition conn.h:1255
uint8_t type
Connection Type.
Definition conn.h:1249
struct bt_conn_br_remote_info br
BR/EDR connection remote info.
Definition conn.h:1265
struct bt_conn_le_remote_info le
LE connection remote info.
Definition conn.h:1262
SCO Connection Info Structure.
Definition conn.h:1145
uint8_t link_type
SCO link type.
Definition conn.h:1146
uint8_t air_mode
SCO air mode (codec type).
Definition conn.h:1147
Opaque type representing a connection to a remote device.
Definition direction.h:168
Connection parameters for LE connections.
Definition conn.h:46
uint16_t latency
Definition conn.h:49
uint16_t interval_max
Definition conn.h:48
uint16_t timeout
Definition conn.h:50
uint16_t interval_min
Definition conn.h:47
Opaque type representing an advertiser.
LE Secure Connections pairing Out of Band data.
Definition bluetooth.h:2692
Security Info Structure.
Definition conn.h:1193
uint8_t enc_key_size
Encryption Key Size.
Definition conn.h:1197
bt_security_t level
Security Level.
Definition conn.h:1195
enum bt_security_flag flags
Flags.
Definition conn.h:1199
Simple network buffer representation.
Definition net_buf.h:89
Macros to abstract toolchain specific capabilities.
Macro utilities.