Zephyr API Documentation 4.2.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
275
276#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL_IFS \
277 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
278 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK)
279
280#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL \
281 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
282 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK | \
283 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MCES_MASK)
284
285#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_CIS \
286 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_CIS_MASK | \
287 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MSS_CIS_MASK)
288
292#define BT_CONN_LE_FRAME_SPACE_MAX (10000U)
293
306
333
355
370
380
390
400
516
521
533#define BT_CONN_LE_CS_MODE_MAIN_MODE_PART(x) ((x) & 0x3)
534
549#define BT_CONN_LE_CS_MODE_SUB_MODE_PART(x) (((x) >> 4) & 0x3)
550
579
587
605
615
623
631
680
687
693
705
717
805
817struct bt_conn *bt_conn_ref(struct bt_conn *conn);
818
825void bt_conn_unref(struct bt_conn *conn);
826
844 void (*func)(struct bt_conn *conn, void *data),
845 void *data);
846
859struct bt_conn *bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer);
860
867const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn);
868
879uint8_t bt_conn_index(const struct bt_conn *conn);
880
896
897#if defined(CONFIG_BT_USER_PHY_UPDATE)
899#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
900
901#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
902 /* Connection maximum single fragment parameters */
904#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
905
906#if defined(CONFIG_BT_SUBRATING)
907 /* Connection subrating parameters */
908 const struct bt_conn_le_subrating_info *subrate;
909#endif /* defined(CONFIG_BT_SUBRATING) */
910};
911
919#define BT_CONN_INTERVAL_TO_MS(interval) ((interval) * 5U / 4U)
920
925#define BT_CONN_INTERVAL_TO_US(interval) ((interval) * 1250U)
926
929 const bt_addr_t *dst;
930};
931
937
938enum {
941};
942
953
971
979
989
1012
1015
1018};
1019
1029
1056
1069
1082
1083
1118
1137
1141
1151
1169
1182
1190int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info);
1191
1201bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type);
1202
1219int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info);
1220
1230int bt_conn_le_get_tx_power_level(struct bt_conn *conn,
1231 struct bt_conn_le_tx_power *tx_power_level);
1232
1243 struct bt_conn_le_tx_power *tx_power);
1244
1255 enum bt_conn_le_tx_power_phy phy);
1256
1268 bool local_enable,
1269 bool remote_enable);
1270
1283int bt_conn_le_set_path_loss_mon_param(struct bt_conn *conn,
1284 const struct bt_conn_le_path_loss_reporting_param *param);
1285
1299int bt_conn_le_set_path_loss_mon_enable(struct bt_conn *conn, bool enable);
1300
1316
1329int bt_conn_le_subrate_request(struct bt_conn *conn,
1330 const struct bt_conn_le_subrate_param *params);
1331
1348int bt_conn_le_read_all_remote_features(struct bt_conn *conn, uint8_t pages_requested);
1349
1364int bt_conn_le_frame_space_update(struct bt_conn *conn,
1365 const struct bt_conn_le_frame_space_update_param *params);
1366
1379int bt_conn_le_param_update(struct bt_conn *conn,
1380 const struct bt_le_conn_param *param);
1381
1390int bt_conn_le_data_len_update(struct bt_conn *conn,
1391 const struct bt_conn_le_data_len_param *param);
1392
1404int bt_conn_le_phy_update(struct bt_conn *conn,
1405 const struct bt_conn_le_phy_param *param);
1406
1419int bt_conn_le_set_default_phy(uint8_t pref_tx_phy, uint8_t pref_rx_phy);
1420
1443int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason);
1444
1445enum {
1448
1454
1462};
1463
1510
1517#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1518{ \
1519 .options = (_options), \
1520 .interval = (_interval), \
1521 .window = (_window), \
1522 .interval_coded = 0, \
1523 .window_coded = 0, \
1524 .timeout = 0, \
1525}
1526
1533#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \
1534 ((struct bt_conn_le_create_param[]) { \
1535 BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1536 })
1537
1541#define BT_CONN_LE_CREATE_CONN \
1542 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1543 BT_GAP_SCAN_FAST_INTERVAL, \
1544 BT_GAP_SCAN_FAST_INTERVAL)
1545
1550#define BT_CONN_LE_CREATE_CONN_AUTO \
1551 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1552 BT_GAP_SCAN_FAST_INTERVAL, \
1553 BT_GAP_SCAN_FAST_WINDOW)
1554
1578 const struct bt_conn_le_create_param *create_param,
1579 const struct bt_le_conn_param *conn_param,
1580 struct bt_conn **conn);
1581
1594
1614int bt_conn_le_create_synced(const struct bt_le_ext_adv *adv,
1615 const struct bt_conn_le_create_synced_param *synced_param,
1616 const struct bt_le_conn_param *conn_param, struct bt_conn **conn);
1617
1634 const struct bt_le_conn_param *conn_param);
1635
1641
1656__deprecated int bt_le_set_auto_conn(const bt_addr_le_t *addr,
1657 const struct bt_le_conn_param *param);
1658
1696int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec);
1697
1707bt_security_t bt_conn_get_security(const struct bt_conn *conn);
1708
1719uint8_t bt_conn_enc_key_size(const struct bt_conn *conn);
1720
1752
1757
1795
1797 /* The ID associated with the desired configuration (0 to 3) */
1799
1800 /* State of the CS procedure */
1802
1803 /* Antenna configuration index */
1805
1806 /* Transmit power level used for CS procedures (-127 to 20 dB; 0x7F if unavailable) */
1808
1809 /* Duration of each CS subevent in microseconds (1250 us to 4 s) */
1811
1812 /* Number of CS subevents anchored off the same ACL connection event (0x01 to 0x20) */
1814
1815 /* Time between consecutive CS subevents anchored off the same ACL connection event in
1816 * units of 0.625 ms
1817 */
1819
1820 /* Number of ACL connection events between consecutive CS event anchor points */
1822
1823 /* Number of ACL connection events between consecutive CS procedure anchor points */
1825
1826 /* Number of CS procedures to be scheduled (0 if procedures to continue until disabled) */
1828
1829 /* Maximum duration for each procedure in units of 0.625 ms (0x0001 to 0xFFFF) */
1831};
1832
1868 void (*connected)(struct bt_conn *conn, uint8_t err);
1869
1887 void (*disconnected)(struct bt_conn *conn, uint8_t reason);
1888
1901 void (*recycled)(void);
1902
1927 bool (*le_param_req)(struct bt_conn *conn,
1928 struct bt_le_conn_param *param);
1929
1940 void (*le_param_updated)(struct bt_conn *conn, uint16_t interval,
1941 uint16_t latency, uint16_t timeout);
1942#if defined(CONFIG_BT_SMP)
1952 void (*identity_resolved)(struct bt_conn *conn,
1953 const bt_addr_le_t *rpa,
1954 const bt_addr_le_t *identity);
1955#endif /* CONFIG_BT_SMP */
1956#if defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC)
1973 void (*security_changed)(struct bt_conn *conn, bt_security_t level,
1974 enum bt_security_err err);
1975#endif /* defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC) */
1976
1977#if defined(CONFIG_BT_REMOTE_INFO)
1986 void (*remote_info_available)(struct bt_conn *conn,
1987 struct bt_conn_remote_info *remote_info);
1988#endif /* defined(CONFIG_BT_REMOTE_INFO) */
1989
1990#if defined(CONFIG_BT_USER_PHY_UPDATE)
1999 void (*le_phy_updated)(struct bt_conn *conn,
2000 struct bt_conn_le_phy_info *param);
2001#endif /* defined(CONFIG_BT_USER_PHY_UPDATE) */
2002
2003#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
2012 void (*le_data_len_updated)(struct bt_conn *conn,
2013 struct bt_conn_le_data_len_info *info);
2014#endif /* defined(CONFIG_BT_USER_DATA_LEN_UPDATE) */
2015
2016#if defined(CONFIG_BT_DF_CONNECTION_CTE_RX)
2023 void (*cte_report_cb)(struct bt_conn *conn,
2024 const struct bt_df_conn_iq_samples_report *iq_report);
2025#endif /* CONFIG_BT_DF_CONNECTION_CTE_RX */
2026
2027#if defined(CONFIG_BT_TRANSMIT_POWER_CONTROL)
2039 void (*tx_power_report)(struct bt_conn *conn,
2040 const struct bt_conn_le_tx_power_report *report);
2041#endif /* CONFIG_BT_TRANSMIT_POWER_CONTROL */
2042
2043#if defined(CONFIG_BT_PATH_LOSS_MONITORING)
2053 void (*path_loss_threshold_report)(struct bt_conn *conn,
2054 const struct bt_conn_le_path_loss_threshold_report *report);
2055#endif /* CONFIG_BT_PATH_LOSS_MONITORING */
2056
2057#if defined(CONFIG_BT_SUBRATING)
2068 void (*subrate_changed)(struct bt_conn *conn,
2069 const struct bt_conn_le_subrate_changed *params);
2070#endif /* CONFIG_BT_SUBRATING */
2071
2072#if defined(CONFIG_BT_LE_EXTENDED_FEAT_SET)
2086 void (*read_all_remote_feat_complete)(
2087 struct bt_conn *conn,
2088 const struct bt_conn_le_read_all_remote_feat_complete *params);
2089#endif /* CONFIG_BT_LE_EXTENDED_FEAT_SET */
2090
2091#if defined(CONFIG_BT_FRAME_SPACE_UPDATE)
2106 void (*frame_space_updated)(
2107 struct bt_conn *conn,
2108 const struct bt_conn_le_frame_space_updated *params);
2109#endif /* CONFIG_BT_FRAME_SPACE_UPDATE */
2110
2111#if defined(CONFIG_BT_CHANNEL_SOUNDING)
2124 void (*le_cs_read_remote_capabilities_complete)(struct bt_conn *conn,
2125 uint8_t status,
2126 struct bt_conn_le_cs_capabilities *params);
2127
2140 void (*le_cs_read_remote_fae_table_complete)(struct bt_conn *conn,
2141 uint8_t status,
2142 struct bt_conn_le_cs_fae_table *params);
2143
2155 void (*le_cs_config_complete)(struct bt_conn *conn,
2156 uint8_t status,
2157 struct bt_conn_le_cs_config *config);
2158
2167 void (*le_cs_config_removed)(struct bt_conn *conn, uint8_t config_id);
2168
2177 void (*le_cs_subevent_data_available)(struct bt_conn *conn,
2178 struct bt_conn_le_cs_subevent_result *result);
2179
2190 void (*le_cs_security_enable_complete)(struct bt_conn *conn, uint8_t status);
2191
2203 void (*le_cs_procedure_enable_complete)(
2204 struct bt_conn *conn, uint8_t status,
2206
2207#endif
2208
2209#if defined(CONFIG_BT_CLASSIC)
2217 void (*role_changed)(struct bt_conn *conn, uint8_t status);
2218#endif
2219
2220#if defined(CONFIG_BT_CONN_DYNAMIC_CALLBACKS)
2222 sys_snode_t _node;
2223#endif
2224};
2225
2236
2249
2255#define BT_CONN_CB_DEFINE(_name) \
2256 static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
2257 _CONCAT(bt_conn_cb_, \
2258 _name))
2259
2266#if defined(CONFIG_BT_SECURITY_ERR_TO_STR)
2267const char *bt_security_err_to_str(enum bt_security_err err);
2268#else
2269static inline const char *bt_security_err_to_str(enum bt_security_err err)
2270{
2271 ARG_UNUSED(err);
2272
2273 return "";
2274}
2275#endif
2276
2287void bt_set_bondable(bool enable);
2288
2299
2323int bt_conn_set_bondable(struct bt_conn *conn, bool enable);
2324
2331void bt_le_oob_set_sc_flag(bool enable);
2332
2340
2354int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const uint8_t *tk);
2355
2375int bt_le_oob_set_sc_data(struct bt_conn *conn,
2376 const struct bt_le_oob_sc_data *oobd_local,
2377 const struct bt_le_oob_sc_data *oobd_remote);
2378
2395int bt_le_oob_get_sc_data(struct bt_conn *conn,
2396 const struct bt_le_oob_sc_data **oobd_local,
2397 const struct bt_le_oob_sc_data **oobd_remote);
2398
2403#define BT_PASSKEY_INVALID 0xffffffff
2404
2418int bt_passkey_set(unsigned int passkey);
2419
2451
2452#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2482#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2483
2486#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2516 enum bt_security_err (*pairing_accept)(struct bt_conn *conn,
2517 const struct bt_conn_pairing_feat *const feat);
2518#endif /* CONFIG_BT_SMP_APP_PAIRING_ACCEPT */
2519
2538 void (*passkey_display)(struct bt_conn *conn, unsigned int passkey);
2539
2540#if defined(CONFIG_BT_PASSKEY_KEYPRESS)
2562 void (*passkey_display_keypress)(struct bt_conn *conn,
2563 enum bt_conn_auth_keypress type);
2564#endif
2565
2584 void (*passkey_entry)(struct bt_conn *conn);
2585
2607 void (*passkey_confirm)(struct bt_conn *conn, unsigned int passkey);
2608
2625 void (*oob_data_request)(struct bt_conn *conn,
2626 struct bt_conn_oob_info *info);
2627
2640 void (*cancel)(struct bt_conn *conn);
2641
2660 void (*pairing_confirm)(struct bt_conn *conn);
2661
2662#if defined(CONFIG_BT_CLASSIC)
2681 void (*pincode_entry)(struct bt_conn *conn, bool highsec);
2682#endif
2683};
2684
2696 void (*pairing_complete)(struct bt_conn *conn, bool bonded);
2697
2703 void (*pairing_failed)(struct bt_conn *conn,
2704 enum bt_security_err reason);
2705
2714 void (*bond_deleted)(uint8_t id, const bt_addr_le_t *peer);
2715
2716#if defined(CONFIG_BT_CLASSIC)
2724 void (*br_bond_deleted)(const bt_addr_t *peer);
2725#endif /* CONFIG_BT_CLASSIC */
2726
2729};
2730
2741
2757int bt_conn_auth_cb_overlay(struct bt_conn *conn, const struct bt_conn_auth_cb *cb);
2758
2769
2779
2791int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey);
2792
2809int bt_conn_auth_keypress_notify(struct bt_conn *conn, enum bt_conn_auth_keypress type);
2810
2820int bt_conn_auth_cancel(struct bt_conn *conn);
2821
2832int bt_conn_auth_passkey_confirm(struct bt_conn *conn);
2833
2844int bt_conn_auth_pairing_confirm(struct bt_conn *conn);
2845
2857int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin);
2858
2863
2868#define BT_BR_CONN_PARAM_INIT(role_switch) \
2869{ \
2870 .allow_role_switch = (role_switch), \
2871}
2872
2877#define BT_BR_CONN_PARAM(role_switch) \
2878 ((struct bt_br_conn_param[]) { \
2879 BT_BR_CONN_PARAM_INIT(role_switch) \
2880 })
2881
2885#define BT_BR_CONN_PARAM_DEFAULT BT_BR_CONN_PARAM(true)
2886
2887
2900struct bt_conn *bt_conn_create_br(const bt_addr_t *peer,
2901 const struct bt_br_conn_param *param);
2902
2914struct bt_conn *bt_conn_lookup_addr_br(const bt_addr_t *peer);
2915
2922const bt_addr_t *bt_conn_get_dst_br(const struct bt_conn *conn);
2923
2934int bt_conn_br_switch_role(const struct bt_conn *conn, uint8_t role);
2935
2945int bt_conn_br_set_role_switch_enable(const struct bt_conn *conn, bool enable);
2946
2947#ifdef __cplusplus
2948}
2949#endif
2950
2954
2955#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:581
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:382
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.
bt_conn_le_cs_mode
Channel sounding mode (main and sub-mode)
Definition conn.h:562
bt_security_flag
Security Info Flags.
Definition conn.h:973
bt_conn_le_cs_procedure_abort_reason
Procedure abort reason.
Definition conn.h:695
static const char * bt_security_err_to_str(enum bt_security_err err)
Converts a security error to string.
Definition conn.h:2269
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:617
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:392
bt_conn_auth_keypress
Passkey Keypress Notification type.
Definition conn.h:1175
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:707
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:1057
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:689
int bt_le_set_auto_conn(const bt_addr_le_t *addr, const struct bt_le_conn_param *param)
Automatically connect to remote device if it's in range.
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:943
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:682
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:1721
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:607
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:1785
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:357
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.
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.
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:295
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:955
bt_conn_le_cs_ch3c_shape
Channel sounding channel sequence shape.
Definition conn.h:625
bt_conn_le_cs_procedure_enable_state
Definition conn.h:1753
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:1127
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:372
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:589
@ 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:585
@ BT_CONN_LE_CS_ROLE_INITIATOR
CS initiator role.
Definition conn.h:583
@ BT_CONN_LE_CS_RTT_SOUNDING_150NS
150ns time-of-flight accuracy.
Definition conn.h:388
@ BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP
Sounding Sequence RTT variant is not supported.
Definition conn.h:384
@ BT_CONN_LE_CS_RTT_SOUNDING_10NS
10ns time-of-flight accuracy.
Definition conn.h:386
@ BT_CONN_LE_CS_MAIN_MODE_3_SUB_MODE_2
Main mode 3 (RTT and PBR), sub-mode 2 (PBR)
Definition conn.h:576
@ BT_CONN_LE_CS_MAIN_MODE_3_NO_SUB_MODE
Main mode 3 (RTT and PBR), sub-mode: unused.
Definition conn.h:568
@ BT_CONN_LE_CS_MAIN_MODE_1_NO_SUB_MODE
Main mode 1 (RTT), sub-mode: unused.
Definition conn.h:564
@ BT_CONN_LE_CS_MAIN_MODE_2_NO_SUB_MODE
Main mode 2 (PBR), sub-mode: unused.
Definition conn.h:566
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_1
Main mode 2 (PBR), sub-mode 1 (RTT)
Definition conn.h:570
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_3
Main mode 2 (PBR), sub-mode 3 (RTT and PBR)
Definition conn.h:573
@ BT_SECURITY_FLAG_OOB
Paired with Out of Band method.
Definition conn.h:977
@ BT_SECURITY_FLAG_SC
Paired with Secure Connections.
Definition conn.h:975
@ BT_CONN_LE_CS_PROCEDURE_ABORT_REQUESTED
Definition conn.h:697
@ BT_CONN_LE_CS_PROCEDURE_ABORT_TOO_FEW_CHANNELS
Definition conn.h:699
@ BT_CONN_LE_CS_PROCEDURE_NOT_ABORTED
Definition conn.h:696
@ BT_CONN_LE_CS_PROCEDURE_ABORT_UNSPECIFIED
Definition conn.h:703
@ BT_CONN_LE_CS_PROCEDURE_ABORT_CHMAP_INSTANT_PASSED
Definition conn.h:701
@ BT_CONN_LE_CS_CHSEL_TYPE_3C
Use Channel Selection Algorithm #3c for non-mode-0 CS steps.
Definition conn.h:621
@ BT_CONN_LE_CS_CHSEL_TYPE_3B
Use Channel Selection Algorithm #3b for non-mode-0 CS steps.
Definition conn.h:619
@ BT_CONN_LE_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:1447
@ BT_CONN_LE_OPT_NO_1M
Disable LE 1M PHY.
Definition conn.h:1461
@ BT_CONN_LE_OPT_CODED
Enable LE Coded PHY.
Definition conn.h:1453
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS
10ns time-of-flight accuracy.
Definition conn.h:396
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP
Random Payload RTT variant is not supported.
Definition conn.h:394
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_150NS
150ns time-of-flight accuracy.
Definition conn.h:398
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ERASED
Definition conn.h:1178
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ENTERED
Definition conn.h:1177
@ BT_CONN_AUTH_KEYPRESS_CLEARED
Definition conn.h:1179
@ BT_CONN_AUTH_KEYPRESS_ENTRY_STARTED
Definition conn.h:1176
@ BT_CONN_AUTH_KEYPRESS_ENTRY_COMPLETED
Definition conn.h:1180
@ BT_CONN_LE_CS_SUBEVENT_NOT_ABORTED
Definition conn.h:708
@ BT_CONN_LE_CS_SUBEVENT_ABORT_UNSPECIFIED
Definition conn.h:715
@ BT_CONN_LE_CS_SUBEVENT_ABORT_REQUESTED
Definition conn.h:709
@ BT_CONN_LE_CS_SUBEVENT_ABORT_SCHED_CONFLICT
Definition conn.h:713
@ BT_CONN_LE_CS_SUBEVENT_ABORT_NO_CS_SYNC
Definition conn.h:711
@ BT_CONN_LE_TX_POWER_PHY_NONE
Convenience macro for when no PHY is set.
Definition conn.h:1059
@ BT_CONN_LE_TX_POWER_PHY_CODED_S2
LE Coded PHY using S=2 coding.
Definition conn.h:1067
@ BT_CONN_LE_TX_POWER_PHY_CODED_S8
LE Coded PHY using S=8 coding.
Definition conn.h:1065
@ BT_CONN_LE_TX_POWER_PHY_1M
LE 1M PHY.
Definition conn.h:1061
@ BT_CONN_LE_TX_POWER_PHY_2M
LE 2M PHY.
Definition conn.h:1063
@ BT_CONN_LE_CS_SUBEVENT_ABORTED
Definition conn.h:691
@ BT_CONN_LE_CS_SUBEVENT_COMPLETE
Definition conn.h:690
@ BT_CONN_STATE_CONNECTING
Channel in connecting state.
Definition conn.h:947
@ BT_CONN_STATE_CONNECTED
Channel connected and ready for upper layer traffic on it.
Definition conn.h:949
@ BT_CONN_STATE_DISCONNECTED
Channel disconnected.
Definition conn.h:945
@ BT_CONN_STATE_DISCONNECTING
Channel in disconnecting state.
Definition conn.h:951
@ BT_CONN_LE_CS_PROCEDURE_ABORTED
Definition conn.h:685
@ BT_CONN_LE_CS_PROCEDURE_COMPLETE
Definition conn.h:683
@ BT_CONN_LE_CS_PROCEDURE_INCOMPLETE
Definition conn.h:684
@ BT_CONN_ROLE_PERIPHERAL
Definition conn.h:940
@ BT_CONN_ROLE_CENTRAL
Definition conn.h:939
@ BT_SECURITY_ERR_OOB_NOT_AVAILABLE
OOB data is not available.
Definition conn.h:1732
@ BT_SECURITY_ERR_AUTH_REQUIREMENT
The requested security level could not be reached.
Definition conn.h:1735
@ BT_SECURITY_ERR_KEY_REJECTED
Distributed Key Rejected.
Definition conn.h:1747
@ BT_SECURITY_ERR_UNSPECIFIED
Pairing failed but the exact reason could not be specified.
Definition conn.h:1750
@ BT_SECURITY_ERR_INVALID_PARAM
Invalid parameters.
Definition conn.h:1744
@ BT_SECURITY_ERR_PAIR_NOT_SUPPORTED
Pairing is not supported.
Definition conn.h:1738
@ BT_SECURITY_ERR_AUTH_FAIL
Authentication failed.
Definition conn.h:1726
@ BT_SECURITY_ERR_PIN_OR_KEY_MISSING
PIN or encryption key is missing.
Definition conn.h:1729
@ BT_SECURITY_ERR_SUCCESS
Security procedure successful.
Definition conn.h:1723
@ BT_SECURITY_ERR_PAIR_NOT_ALLOWED
Pairing is not allowed.
Definition conn.h:1741
@ BT_CONN_LE_CS_SYNC_1M_PHY
LE 1M PHY.
Definition conn.h:609
@ BT_CONN_LE_CS_SYNC_2M_PHY
LE 2M PHY.
Definition conn.h:611
@ BT_CONN_LE_CS_SYNC_2M_2BT_PHY
LE 2M 2BT PHY.
Definition conn.h:613
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B1
Definition conn.h:1786
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B2
Definition conn.h:1793
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B3
Definition conn.h:1791
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B4
Definition conn.h:1792
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B2
Definition conn.h:1790
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A3_B1
Definition conn.h:1788
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A4_B1
Definition conn.h:1789
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B1
Definition conn.h:1787
@ BT_CONN_TYPE_LE
LE Connection Type.
Definition conn.h:359
@ BT_CONN_TYPE_ALL
All Connection Type.
Definition conn.h:367
@ BT_CONN_TYPE_BR
BR/EDR Connection Type.
Definition conn.h:361
@ BT_CONN_TYPE_ISO
ISO Connection Type.
Definition conn.h:365
@ BT_CONN_TYPE_SCO
SCO Connection Type.
Definition conn.h:363
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Initiated by peer.
Definition conn.h:303
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Initiated by local controller.
Definition conn.h:300
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Initiated by local host.
Definition conn.h:297
@ BT_SECURITY_L4
Level 4: Authenticated Secure Connections and 128-bit key.
Definition conn.h:965
@ BT_SECURITY_L0
Level 0: Only for BR/EDR special cases, like SDP.
Definition conn.h:957
@ BT_SECURITY_L3
Level 3: Encryption and authentication (MITM).
Definition conn.h:963
@ BT_SECURITY_FORCE_PAIR
Bit to force new pairing procedure, bit-wise OR with requested security level.
Definition conn.h:969
@ BT_SECURITY_L1
Level 1: No encryption and no authentication.
Definition conn.h:959
@ BT_SECURITY_L2
Level 2: Encryption and no authentication (no MITM).
Definition conn.h:961
@ BT_CONN_LE_CS_CH3C_SHAPE_HAT
Use Hat shape for user-specified channel sequence.
Definition conn.h:627
@ BT_CONN_LE_CS_CH3C_SHAPE_X
Use X shape for user-specified channel sequence.
Definition conn.h:629
@ BT_CONN_LE_CS_PROCEDURES_ENABLED
Definition conn.h:1755
@ BT_CONN_LE_CS_PROCEDURES_DISABLED
Definition conn.h:1754
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_MIDDLE
Middle path loss zone entered.
Definition conn.h:1131
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_LOW
Low path loss zone entered.
Definition conn.h:1129
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_HIGH
High path loss zone entered.
Definition conn.h:1133
@ BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE
Path loss has become unavailable.
Definition conn.h:1135
@ BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP
AA-Only RTT variant is not supported.
Definition conn.h:374
@ BT_CONN_LE_CS_RTT_AA_ONLY_150NS
150ns time-of-flight accuracy.
Definition conn.h:378
@ BT_CONN_LE_CS_RTT_AA_ONLY_10NS
10ns time-of-flight accuracy.
Definition conn.h:376
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING
RTT with 96-bit sounding sequence.
Definition conn.h:595
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING
RTT with 32-bit sounding sequence.
Definition conn.h:593
@ BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM
RTT with 128-bit random sequence.
Definition conn.h:603
@ BT_CONN_LE_CS_RTT_TYPE_AA_ONLY
RTT AA only.
Definition conn.h:591
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM
RTT with 96-bit random sequence.
Definition conn.h:601
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM
RTT with 32-bit random sequence.
Definition conn.h:597
@ BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM
RTT with 64-bit random sequence.
Definition conn.h:599
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:3796
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Definition hci_types.h:2842
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT
Definition hci_types.h:3802
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3800
#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND
Definition hci_types.h:2682
#define BT_HCI_OP_LE_CS_SUB_MODE_1
Definition hci_types.h:2668
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3797
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT
Definition hci_types.h:3805
#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED
Definition hci_types.h:2653
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3803
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Definition hci_types.h:2843
#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED
Definition hci_types.h:2654
#define BT_HCI_OP_LE_CS_SUB_MODE_3
Definition hci_types.h:2670
#define BT_HCI_OP_LE_CS_ACI_6
Definition hci_types.h:2697
#define BT_HCI_OP_LE_CS_ACI_1
Definition hci_types.h:2692
#define BT_HCI_OP_LE_CS_MAIN_MODE_3
Definition hci_types.h:2666
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS
Definition hci_types.h:3798
#define BT_HCI_OP_LE_CS_MAIN_MODE_2
Definition hci_types.h:2665
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND
Definition hci_types.h:2678
#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY
Definition hci_types.h:2676
#define BT_HCI_OP_LE_CS_ACI_3
Definition hci_types.h:2694
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B
Definition hci_types.h:2717
#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND
Definition hci_types.h:2680
#define BT_HCI_OP_LE_CS_CS_SYNC_1M
Definition hci_types.h:2684
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED
Definition hci_types.h:3790
#define BT_HCI_OP_LE_CS_ACI_0
Definition hci_types.h:2691
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND
Definition hci_types.h:2677
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND
Definition hci_types.h:2681
#define BT_HCI_OP_LE_CS_ACI_2
Definition hci_types.h:2693
#define BT_HCI_LE_ZONE_ENTERED_MIDDLE
Definition hci_types.h:3560
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND
Definition hci_types.h:2679
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3806
#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT
Definition hci_types.h:2686
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED
Definition hci_types.h:3804
#define BT_HCI_OP_LE_CS_ACI_7
Definition hci_types.h:2698
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Definition hci_types.h:2844
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT
Definition hci_types.h:2720
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE
Definition hci_types.h:3788
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X
Definition hci_types.h:2721
#define BT_HCI_OP_LE_CS_ACI_5
Definition hci_types.h:2696
#define BT_HCI_OP_LE_CS_SUB_MODE_2
Definition hci_types.h:2669
#define BT_HCI_OP_LE_CS_CS_SYNC_2M
Definition hci_types.h:2685
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED
Definition hci_types.h:3799
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE
Definition hci_types.h:3792
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL
Definition hci_types.h:3789
#define BT_HCI_OP_LE_CS_ACI_4
Definition hci_types.h:2695
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C
Definition hci_types.h:2718
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED
Definition hci_types.h:3794
#define BT_HCI_OP_LE_CS_MAIN_MODE_1
Definition hci_types.h:2664
#define BT_HCI_LE_ZONE_ENTERED_HIGH
Definition hci_types.h:3561
#define BT_HCI_LE_ZONE_ENTERED_LOW
Definition hci_types.h:3559
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:2860
bool allow_role_switch
Definition conn.h:2861
Authenticated pairing callback structure.
Definition conn.h:2485
void(* passkey_entry)(struct bt_conn *conn)
Request the user to enter a passkey.
Definition conn.h:2584
void(* passkey_display)(struct bt_conn *conn, unsigned int passkey)
Display a passkey to the user.
Definition conn.h:2538
void(* passkey_confirm)(struct bt_conn *conn, unsigned int passkey)
Request the user to confirm a passkey.
Definition conn.h:2607
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:2516
void(* pincode_entry)(struct bt_conn *conn, bool highsec)
Request the user to enter a passkey.
Definition conn.h:2681
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:2625
void(* pairing_confirm)(struct bt_conn *conn)
Request confirmation for an incoming pairing.
Definition conn.h:2660
void(* cancel)(struct bt_conn *conn)
Cancel the ongoing user request.
Definition conn.h:2640
Authenticated pairing information callback structure.
Definition conn.h:2686
void(* pairing_failed)(struct bt_conn *conn, enum bt_security_err reason)
notify that pairing process has failed.
Definition conn.h:2703
void(* pairing_complete)(struct bt_conn *conn, bool bonded)
notify that pairing procedure was complete.
Definition conn.h:2696
void(* bond_deleted)(uint8_t id, const bt_addr_le_t *peer)
Notify that bond has been deleted.
Definition conn.h:2714
void(* br_bond_deleted)(const bt_addr_t *peer)
Notify that bond of classic has been deleted.
Definition conn.h:2724
sys_snode_t node
Internally used field for list handling.
Definition conn.h:2728
BR/EDR Connection Info Structure.
Definition conn.h:928
const bt_addr_t * dst
Destination (Remote) BR/EDR address.
Definition conn.h:929
BR/EDR Connection Remote Info structure.
Definition conn.h:1021
uint8_t num_pages
Number of pages in the remote feature set.
Definition conn.h:1027
const uint8_t * features
Remote feature set (pages of bitmasks).
Definition conn.h:1024
Connection callback structure.
Definition conn.h:1843
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:1940
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:2012
void(* recycled)(void)
A connection object has been returned to the pool.
Definition conn.h:1901
bool(* le_param_req)(struct bt_conn *conn, struct bt_le_conn_param *param)
LE connection parameter update request.
Definition conn.h:1927
void(* role_changed)(struct bt_conn *conn, uint8_t status)
The role of the connection has changed.
Definition conn.h:2217
void(* disconnected)(struct bt_conn *conn, uint8_t reason)
A connection has been disconnected.
Definition conn.h:1887
void(* connected)(struct bt_conn *conn, uint8_t err)
A new connection has been established.
Definition conn.h:1868
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:1999
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:1973
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:1952
void(* remote_info_available)(struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Remote information procedures has completed.
Definition conn.h:1986
Connection Info Structure.
Definition conn.h:991
uint8_t id
Which local identity the connection was created with.
Definition conn.h:997
struct bt_conn_le_info le
LE Connection specific Info.
Definition conn.h:1001
enum bt_conn_type type
Connection Type.
Definition conn.h:993
struct bt_conn_br_info br
BR/EDR Connection specific Info.
Definition conn.h:1003
uint8_t role
Connection Role.
Definition conn.h:995
struct bt_conn_sco_info sco
SCO Connection specific Info.
Definition conn.h:1005
struct bt_security_info security
Security specific info.
Definition conn.h:1010
enum bt_conn_state state
Connection state.
Definition conn.h:1008
Definition conn.h:1464
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS)
Definition conn.h:1493
uint16_t window
Scan window (N * 0.625 ms)
Definition conn.h:1487
uint32_t options
Bit-field of create connection options.
Definition conn.h:1467
uint16_t timeout
Connection initiation timeout (N * 10 MS)
Definition conn.h:1508
uint16_t interval
Scan interval (N * 0.625 ms)
Definition conn.h:1477
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS)
Definition conn.h:1499
Definition conn.h:1582
const bt_addr_le_t * peer
Remote address.
Definition conn.h:1589
uint8_t subevent
The subevent where the connection will be initiated.
Definition conn.h:1592
Remote channel sounding capabilities for LE connections supporting CS.
Definition conn.h:402
uint16_t t_ip1_times_supported
Optional T_IP1 time durations during CS steps.
Definition conn.h:473
bool phase_based_nadm_random_supported
Phase-based normalized attack detector metric when a CS_SYNC with random sequence is received.
Definition conn.h:452
uint16_t t_fcs_times_supported
Optional T_FCS time durations during CS steps.
Definition conn.h:497
bool cs_without_fae_supported
Subfeature: CS with no Frequency Actuation Error.
Definition conn.h:458
uint8_t rtt_random_payload_n
Number of CS steps needed to achieve the accuracy requirements for RTT Random Payload.
Definition conn.h:444
bool cs_sync_2m_phy_supported
CS_SYNC LE 2M PHY.
Definition conn.h:454
enum bt_conn_le_cs_capability_rtt_aa_only rtt_aa_only_precision
RTT AA-Only.
Definition conn.h:422
uint8_t num_antennas_supported
Number of antennas.
Definition conn.h:412
uint8_t t_sw_time
Time in microseconds for the antenna switch period of the CS tones.
Definition conn.h:505
bool cs_sync_2m_2bt_phy_supported
CS_SYNC LE 2M 2BT PHY.
Definition conn.h:456
bool initiator_supported
Initiator role.
Definition conn.h:416
bool reflector_supported
Reflector role.
Definition conn.h:418
uint16_t t_pm_times_supported
Optional T_PM time durations during CS steps.
Definition conn.h:503
uint8_t num_config_supported
Number of CS configurations.
Definition conn.h:404
uint8_t rtt_sounding_n
Number of CS steps needed to achieve the accuracy requirements for RTT Sounding.
Definition conn.h:438
bool phase_based_nadm_sounding_supported
Phase-based normalized attack detector metric when a CS_SYNC with sounding sequence is received.
Definition conn.h:448
bool mode_3_supported
Mode-3.
Definition conn.h:420
bool chsel_alg_3c_supported
Subfeature: Channel Selection Algorithm #3c.
Definition conn.h:460
enum bt_conn_le_cs_capability_rtt_random_payload rtt_random_payload_precision
RTT Random Payload.
Definition conn.h:426
uint8_t rtt_aa_only_n
Number of CS steps needed to achieve the accuracy requirements for RTT AA Only.
Definition conn.h:432
uint8_t max_antenna_paths_supported
Maximum number of antenna paths.
Definition conn.h:414
enum bt_conn_le_cs_capability_rtt_sounding rtt_sounding_precision
RTT Sounding.
Definition conn.h:424
bool pbr_from_rtt_sounding_seq_supported
Subfeature: Phase-based Ranging from RTT sounding sequence.
Definition conn.h:462
uint8_t tx_snr_capability
Supported SNR levels used in RTT packets.
Definition conn.h:514
uint16_t max_consecutive_procedures_supported
Maximum number of consecutive CS procedures.
Definition conn.h:410
uint16_t t_ip2_times_supported
Optional T_IP2 time durations during CS steps.
Definition conn.h:484
Channel sounding configuration.
Definition conn.h:633
enum bt_conn_le_cs_rtt_type rtt_type
RTT type.
Definition conn.h:652
enum bt_conn_le_cs_sync_phy cs_sync_phy
CS Sync PHY.
Definition conn.h:654
uint8_t t_fcs_time_us
Time in microseconds for frequency changes.
Definition conn.h:670
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:639
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:646
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:678
enum bt_conn_le_cs_chsel_type channel_selection_type
Channel selection type.
Definition conn.h:660
uint8_t t_ip2_time_us
Interlude time in microseconds between the CS tones.
Definition conn.h:668
uint8_t mode_0_steps
Number of CS mode-0 steps to be included at the beginning of each CS subevent.
Definition conn.h:648
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:658
enum bt_conn_le_cs_ch3c_shape ch3c_shape
User-specified channel sequence shape.
Definition conn.h:662
uint8_t t_ip1_time_us
Interlude time in microseconds between the RTT packets.
Definition conn.h:666
uint8_t id
CS configuration ID.
Definition conn.h:635
enum bt_conn_le_cs_mode mode
CS main and sub mode.
Definition conn.h:637
enum bt_conn_le_cs_role role
CS role.
Definition conn.h:650
uint8_t t_pm_time_us
Time in microseconds for the phase measurement period of the CS tones.
Definition conn.h:672
uint8_t ch3c_jump
Number of channels skipped in each rising and falling sequence.
Definition conn.h:664
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:641
Remote FAE Table for LE connections supporting CS.
Definition conn.h:518
int8_t * remote_fae_table
Definition conn.h:519
uint8_t config_id
Definition conn.h:1798
enum bt_conn_le_cs_tone_antenna_config_selection tone_antenna_config_selection
Definition conn.h:1804
uint8_t subevents_per_event
Definition conn.h:1813
uint16_t event_interval
Definition conn.h:1821
uint16_t subevent_interval
Definition conn.h:1818
uint16_t procedure_interval
Definition conn.h:1824
uint16_t procedure_count
Definition conn.h:1827
enum bt_conn_le_cs_procedure_enable_state state
Definition conn.h:1801
uint16_t max_procedure_len
Definition conn.h:1830
uint32_t subevent_len
Definition conn.h:1810
int8_t selected_tx_power
Definition conn.h:1807
Subevent data for LE connections supporting CS.
Definition conn.h:719
uint16_t procedure_counter
CS procedure count associated with these results.
Definition conn.h:740
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:790
uint8_t num_steps_reported
Number of CS steps in the subevent.
Definition conn.h:793
enum bt_conn_le_cs_subevent_done_status subevent_done_status
Subevent status.
Definition conn.h:773
struct net_buf_simple * step_data_buf
Pointer to buffer containing step data.
Definition conn.h:803
uint16_t start_acl_conn_event
Starting ACL connection event counter.
Definition conn.h:734
enum bt_conn_le_cs_procedure_abort_reason procedure_abort_reason
Abort reason.
Definition conn.h:780
uint16_t frequency_compensation
Frequency compensation value in units of 0.01 ppm.
Definition conn.h:749
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:798
uint8_t config_id
CS configuration identifier.
Definition conn.h:728
int8_t reference_power_level
Reference power level in dBm.
Definition conn.h:757
enum bt_conn_le_cs_procedure_done_status procedure_done_status
Procedure status.
Definition conn.h:759
enum bt_conn_le_cs_subevent_abort_reason subevent_abort_reason
Abort reason.
Definition conn.h:787
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:308
uint16_t spacing_types
Spacing types mask of the spacing types to be updated.
Definition conn.h:317
uint8_t phys
Phy mask of the PHYs to be updated.
Definition conn.h:312
uint16_t frame_space_min
Minimum frame space in microseconds.
Definition conn.h:324
uint16_t frame_space_max
Maximum frame space in microseconds.
Definition conn.h:331
Frame space updated callback params.
Definition conn.h:335
uint8_t status
HCI Status from LE Frame Space Update Complete event.
Definition conn.h:340
uint8_t phys
Phy mask of the PHYs updated.
Definition conn.h:348
uint16_t spacing_types
Spacing types mask of the spacing types updated.
Definition conn.h:353
uint16_t frame_space
Updated frame space in microseconds.
Definition conn.h:344
enum bt_conn_le_frame_space_update_initiator initiator
Initiator of the frame space update.
Definition conn.h:342
LE Connection Info Structure.
Definition conn.h:882
const bt_addr_le_t * dst
Destination (Remote) Identity Address or remote Resolvable Private Address (RPA) before identity has ...
Definition conn.h:888
const struct bt_conn_le_phy_info * phy
Definition conn.h:898
const bt_addr_le_t * remote
Remote device address used during connection setup.
Definition conn.h:892
const bt_addr_le_t * local
Local device address used during connection setup.
Definition conn.h:890
const bt_addr_le_t * src
Source (Local) Identity Address.
Definition conn.h:884
uint16_t interval
Connection interval.
Definition conn.h:893
uint16_t latency
Connection peripheral latency.
Definition conn.h:894
const struct bt_conn_le_data_len_info * data_len
Definition conn.h:903
uint16_t timeout
Connection supervision timeout.
Definition conn.h:895
LE Path Loss Monitoring Parameters Structure as defined in Core Spec.
Definition conn.h:1155
uint8_t high_threshold
High threshold for the path loss (dB).
Definition conn.h:1157
uint8_t low_threshold
Low threshold for the path loss (dB).
Definition conn.h:1161
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:1167
uint8_t high_hysteresis
Hysteresis value for the high threshold (dB).
Definition conn.h:1159
uint8_t low_hysteresis
Hysteresis value for the low threshold (dB).
Definition conn.h:1163
LE Path Loss Monitoring Threshold Change Report Structure.
Definition conn.h:1143
enum bt_conn_le_path_loss_zone zone
Path Loss zone as documented in Core Spec.
Definition conn.h:1146
uint8_t path_loss
Current path loss (dB).
Definition conn.h:1149
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:256
uint8_t status
HCI Status from LE Read All Remote Features Complete event.
Definition conn.h:261
uint8_t max_remote_page
Number of pages supported by remote device.
Definition conn.h:263
const uint8_t * features
Pointer to array of size 248, with feature bits of remote supported features.
Definition conn.h:273
uint8_t max_valid_page
Number of pages fetched from remote device.
Definition conn.h:265
LE Connection Remote Info Structure.
Definition conn.h:1014
const uint8_t * features
Remote LE feature set (bitmask).
Definition conn.h:1017
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:1085
enum bt_conn_le_tx_power_phy phy
Phy of Transmit power reporting.
Definition conn.h:1093
int8_t delta
Change in transmit power level.
Definition conn.h:1116
uint8_t reason
Reason for Transmit power reporting, as documented in Core Spec.
Definition conn.h:1090
int8_t tx_power_level
Transmit power level.
Definition conn.h:1103
uint8_t tx_power_level_flag
Bit 0: Transmit power level is at minimum level.
Definition conn.h:1108
LE Transmit Power Level Structure.
Definition conn.h:1071
int8_t max_level
Output: maximum transmit power level.
Definition conn.h:1080
int8_t current_level
Output: current transmit power level.
Definition conn.h:1077
uint8_t phy
Input: 1M, 2M, Coded S2 or Coded S8.
Definition conn.h:1074
Info Structure for OOB pairing.
Definition conn.h:2421
@ BT_CONN_OOB_LE_LEGACY
LE legacy pairing.
Definition conn.h:2425
@ BT_CONN_OOB_LE_SC
LE SC pairing.
Definition conn.h:2428
struct bt_conn_oob_info::@224236016370304343054103074037006351074263006352::@130100253371055064164065265224242172250032310014 lesc
LE Secure Connections OOB pairing parameters.
@ BT_CONN_OOB_NO_DATA
No OOB data requested.
Definition conn.h:2446
@ BT_CONN_OOB_LOCAL_ONLY
Local OOB data requested.
Definition conn.h:2437
@ BT_CONN_OOB_REMOTE_ONLY
Remote OOB data requested.
Definition conn.h:2440
enum bt_conn_oob_info::@224236016370304343054103074037006351074263006352::@130100253371055064164065265224242172250032310014::@174114057350366013042053070360265151016144152040 oob_config
OOB data configuration.
enum bt_conn_oob_info::@143143115062310336126347360141254141124170204126 type
Type of OOB pairing method.
@ BT_CONN_OOB_BOTH_PEERS
Both local and remote OOB data requested.
Definition conn.h:2443
Pairing request and pairing response info structure.
Definition conn.h:2459
uint8_t resp_key_dist
Responder Key Distribution/Generation, Core Spec.
Definition conn.h:2480
uint8_t io_capability
IO Capability, Core Spec.
Definition conn.h:2461
uint8_t init_key_dist
Initiator Key Distribution/Generation, Core Spec.
Definition conn.h:2475
uint8_t max_enc_key_size
Maximum Encryption Key Size, Core Spec.
Definition conn.h:2470
uint8_t auth_req
AuthReq, Core Spec.
Definition conn.h:2467
uint8_t oob_data_flag
OOB data flag, Core Spec.
Definition conn.h:2464
Connection Remote Info Structure.
Definition conn.h:1035
uint8_t version
Remote Link Layer version.
Definition conn.h:1040
uint16_t subversion
Per-manufacturer unique revision.
Definition conn.h:1046
uint16_t manufacturer
Remote manufacturer identifier.
Definition conn.h:1043
uint8_t type
Connection Type.
Definition conn.h:1037
struct bt_conn_br_remote_info br
BR/EDR connection remote info.
Definition conn.h:1053
struct bt_conn_le_remote_info le
LE connection remote info.
Definition conn.h:1050
SCO Connection Info Structure.
Definition conn.h:933
uint8_t link_type
SCO link type.
Definition conn.h:934
uint8_t air_mode
SCO air mode (codec type)
Definition conn.h:935
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:2825
Security Info Structure.
Definition conn.h:981
uint8_t enc_key_size
Encryption Key Size.
Definition conn.h:985
bt_security_t level
Security Level.
Definition conn.h:983
enum bt_security_flag flags
Flags.
Definition conn.h:987
Simple network buffer representation.
Definition net_buf.h:89
Macros to abstract toolchain specific capabilities.
Macro utilities.