11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
57#define BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
59 .interval_min = (int_min), \
60 .interval_max = (int_max), \
57#define BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \ …
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) \
72#define BT_LE_CONN_PARAM(int_min, int_max, lat, to) \ …
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))
82#define BT_LE_CONN_PARAM_DEFAULT \ …
116#define BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
118 .options = BT_CONN_LE_PHY_OPT_NONE, \
119 .pref_tx_phy = (_pref_tx_phy), \
120 .pref_rx_phy = (_pref_rx_phy), \
116#define BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \ …
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) \
128#define BT_CONN_LE_PHY_PARAM(_pref_tx_phy, _pref_rx_phy) \ …
134#define BT_CONN_LE_PHY_PARAM_1M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M, \
134#define BT_CONN_LE_PHY_PARAM_1M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M, \ …
138#define BT_CONN_LE_PHY_PARAM_2M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_2M, \
138#define BT_CONN_LE_PHY_PARAM_2M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_2M, \ …
142#define BT_CONN_LE_PHY_PARAM_CODED BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_CODED, \
142#define BT_CONN_LE_PHY_PARAM_CODED BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_CODED, \ …
146#define BT_CONN_LE_PHY_PARAM_ALL BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M | \
148 BT_GAP_LE_PHY_CODED, \
146#define BT_CONN_LE_PHY_PARAM_ALL BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M | \ …
178#define BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
180 .tx_max_len = (_tx_max_len), \
181 .tx_max_time = (_tx_max_time), \
178#define BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \ …
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) \
189#define BT_CONN_LE_DATA_LEN_PARAM(_tx_max_len, _tx_max_time) \ …
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)
195#define BT_LE_DATA_LEN_PARAM_DEFAULT \ …
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)
200#define BT_LE_DATA_LEN_PARAM_MAX \ …
709 void (*func)(
struct bt_conn *conn,
void *data),
762#if defined(CONFIG_BT_USER_PHY_UPDATE)
766#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
771#if defined(CONFIG_BT_SUBRATING)
784#define BT_CONN_INTERVAL_TO_MS(interval) ((interval) * 5U / 4U)
790#define BT_CONN_INTERVAL_TO_US(interval) ((interval) * 1250U)
814typedef enum __packed {
814typedef enum __packed {
…};
1126 bool remote_enable);
1325#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1327 .options = (_options), \
1328 .interval = (_interval), \
1329 .window = (_window), \
1330 .interval_coded = 0, \
1331 .window_coded = 0, \
1325#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \ …
1341#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \
1342 ((struct bt_conn_le_create_param[]) { \
1343 BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1341#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \ …
1349#define BT_CONN_LE_CREATE_CONN \
1350 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1351 BT_GAP_SCAN_FAST_INTERVAL, \
1352 BT_GAP_SCAN_FAST_INTERVAL)
1349#define BT_CONN_LE_CREATE_CONN \ …
1358#define BT_CONN_LE_CREATE_CONN_AUTO \
1359 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1360 BT_GAP_SCAN_FAST_INTERVAL, \
1361 BT_GAP_SCAN_FAST_WINDOW)
1358#define BT_CONN_LE_CREATE_CONN_AUTO \ …
1388 struct bt_conn **conn);
1750#if defined(CONFIG_BT_SMP)
1764#if defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC)
1785#if defined(CONFIG_BT_REMOTE_INFO)
1798#if defined(CONFIG_BT_USER_PHY_UPDATE)
1811#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
1824#if defined(CONFIG_BT_DF_CONNECTION_CTE_RX)
1831 void (*cte_report_cb)(
struct bt_conn *conn,
1835#if defined(CONFIG_BT_TRANSMIT_POWER_CONTROL)
1847 void (*tx_power_report)(
struct bt_conn *conn,
1851#if defined(CONFIG_BT_PATH_LOSS_MONITORING)
1861 void (*path_loss_threshold_report)(
struct bt_conn *conn,
1865#if defined(CONFIG_BT_SUBRATING)
1876 void (*subrate_changed)(
struct bt_conn *conn,
1880#if defined(CONFIG_BT_CHANNEL_SOUNDING)
1893 void (*le_cs_read_remote_capabilities_complete)(
struct bt_conn *conn,
1909 void (*le_cs_read_remote_fae_table_complete)(
struct bt_conn *conn,
1924 void (*le_cs_config_complete)(
struct bt_conn *conn,
1936 void (*le_cs_config_removed)(
struct bt_conn *conn,
uint8_t config_id);
1946 void (*le_cs_subevent_data_available)(
struct bt_conn *conn,
1959 void (*le_cs_security_enable_complete)(
struct bt_conn *conn,
uint8_t status);
1972 void (*le_cs_procedure_enable_complete)(
1973 struct bt_conn *conn,
uint8_t status,
2011#define BT_CONN_CB_DEFINE(_name) \
2012 static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
2013 _CONCAT(bt_conn_cb_, \
2011#define BT_CONN_CB_DEFINE(_name) \ …
2022#if defined(CONFIG_BT_SECURITY_ERR_TO_STR)
2159#define BT_PASSKEY_INVALID 0xffffffff
2208#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2242#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2295#if defined(CONFIG_BT_PASSKEY_KEYPRESS)
2317 void (*passkey_display_keypress)(
struct bt_conn *conn,
2417#if defined(CONFIG_BT_CLASSIC)
2471#if defined(CONFIG_BT_CLASSIC)
2623#define BT_BR_CONN_PARAM_INIT(role_switch) \
2625 .allow_role_switch = (role_switch), \
2623#define BT_BR_CONN_PARAM_INIT(role_switch) \ …
2632#define BT_BR_CONN_PARAM(role_switch) \
2633 ((struct bt_br_conn_param[]) { \
2634 BT_BR_CONN_PARAM_INIT(role_switch) \
2632#define BT_BR_CONN_PARAM(role_switch) \ …
2640#define BT_BR_CONN_PARAM_DEFAULT BT_BR_CONN_PARAM(true)
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.
bt_conn_le_cs_sub_mode
Channel sounding sub mode.
Definition conn.h:432
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:444
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.
bt_conn_le_cs_main_mode
Channel sounding main mode.
Definition conn.h:422
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:281
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_security_flag
Security Info Flags.
Definition conn.h:832
bt_conn_le_cs_procedure_abort_reason
Procedure abort reason.
Definition conn.h:560
static const char * bt_security_err_to_str(enum bt_security_err err)
Converts a security error to string.
Definition conn.h:2025
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:480
int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
Reply with entered passkey.
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:291
bt_conn_auth_keypress
Passkey Keypress Notification type.
Definition conn.h:1032
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:572
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:914
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_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:554
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:802
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:547
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:1529
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:470
int bt_conn_le_param_update(struct bt_conn *conn, const struct bt_le_conn_param *param)
Update the connection parameters.
bt_conn_le_cs_tone_antenna_config_selection
CS Test Tone Antenna Config Selection.
Definition conn.h:1593
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:256
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.
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:814
bt_conn_le_cs_ch3c_shape
Channel sounding channel sequence shape.
Definition conn.h:488
bt_conn_le_cs_procedure_enable_state
Definition conn.h:1561
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:984
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:271
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:452
@ BT_CONN_LE_CS_SUB_MODE_3
Mode-3 (RTT and PBR)
Definition conn.h:440
@ BT_CONN_LE_CS_SUB_MODE_UNUSED
Unused.
Definition conn.h:434
@ BT_CONN_LE_CS_SUB_MODE_1
Mode-1 (RTT)
Definition conn.h:436
@ BT_CONN_LE_CS_SUB_MODE_2
Mode-2 (PBR)
Definition conn.h:438
@ BT_CONN_LE_CS_ROLE_REFLECTOR
CS reflector role.
Definition conn.h:448
@ BT_CONN_LE_CS_ROLE_INITIATOR
CS initiator role.
Definition conn.h:446
@ BT_CONN_LE_CS_MAIN_MODE_1
Mode-1 (RTT)
Definition conn.h:424
@ BT_CONN_LE_CS_MAIN_MODE_2
Mode-2 (PBR)
Definition conn.h:426
@ BT_CONN_LE_CS_MAIN_MODE_3
Mode-3 (RTT and PBR)
Definition conn.h:428
@ BT_CONN_LE_CS_RTT_SOUNDING_150NS
150ns time-of-flight accuracy.
Definition conn.h:287
@ BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP
Sounding Sequence RTT variant is not supported.
Definition conn.h:283
@ BT_CONN_LE_CS_RTT_SOUNDING_10NS
10ns time-of-flight accuracy.
Definition conn.h:285
@ BT_SECURITY_FLAG_OOB
Paired with Out of Band method.
Definition conn.h:836
@ BT_SECURITY_FLAG_SC
Paired with Secure Connections.
Definition conn.h:834
@ BT_CONN_LE_CS_PROCEDURE_ABORT_REQUESTED
Definition conn.h:562
@ BT_CONN_LE_CS_PROCEDURE_ABORT_TOO_FEW_CHANNELS
Definition conn.h:564
@ BT_CONN_LE_CS_PROCEDURE_NOT_ABORTED
Definition conn.h:561
@ BT_CONN_LE_CS_PROCEDURE_ABORT_UNSPECIFIED
Definition conn.h:568
@ BT_CONN_LE_CS_PROCEDURE_ABORT_CHMAP_INSTANT_PASSED
Definition conn.h:566
@ BT_CONN_LE_CS_CHSEL_TYPE_3C
Use Channel Selection Algorithm #3c for non-mode-0 CS steps.
Definition conn.h:484
@ BT_CONN_LE_CS_CHSEL_TYPE_3B
Use Channel Selection Algorithm #3b for non-mode-0 CS steps.
Definition conn.h:482
@ BT_CONN_ROLE_PERIPHERAL
Definition conn.h:799
@ BT_CONN_ROLE_CENTRAL
Definition conn.h:798
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS
10ns time-of-flight accuracy.
Definition conn.h:295
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP
Random Payload RTT variant is not supported.
Definition conn.h:293
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_150NS
150ns time-of-flight accuracy.
Definition conn.h:297
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ERASED
Definition conn.h:1035
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ENTERED
Definition conn.h:1034
@ BT_CONN_AUTH_KEYPRESS_CLEARED
Definition conn.h:1036
@ BT_CONN_AUTH_KEYPRESS_ENTRY_STARTED
Definition conn.h:1033
@ BT_CONN_AUTH_KEYPRESS_ENTRY_COMPLETED
Definition conn.h:1037
@ BT_CONN_LE_CS_SUBEVENT_NOT_ABORTED
Definition conn.h:573
@ BT_CONN_LE_CS_SUBEVENT_ABORT_UNSPECIFIED
Definition conn.h:580
@ BT_CONN_LE_CS_SUBEVENT_ABORT_REQUESTED
Definition conn.h:574
@ BT_CONN_LE_CS_SUBEVENT_ABORT_SCHED_CONFLICT
Definition conn.h:578
@ BT_CONN_LE_CS_SUBEVENT_ABORT_NO_CS_SYNC
Definition conn.h:576
@ BT_CONN_LE_TX_POWER_PHY_NONE
Convenience macro for when no PHY is set.
Definition conn.h:916
@ BT_CONN_LE_TX_POWER_PHY_CODED_S2
LE Coded PHY using S=2 coding.
Definition conn.h:924
@ BT_CONN_LE_TX_POWER_PHY_CODED_S8
LE Coded PHY using S=8 coding.
Definition conn.h:922
@ BT_CONN_LE_TX_POWER_PHY_1M
LE 1M PHY.
Definition conn.h:918
@ BT_CONN_LE_TX_POWER_PHY_2M
LE 2M PHY.
Definition conn.h:920
@ BT_CONN_LE_CS_SUBEVENT_ABORTED
Definition conn.h:556
@ BT_CONN_LE_CS_SUBEVENT_COMPLETE
Definition conn.h:555
@ BT_CONN_STATE_CONNECTING
Channel in connecting state.
Definition conn.h:806
@ BT_CONN_STATE_CONNECTED
Channel connected and ready for upper layer traffic on it.
Definition conn.h:808
@ BT_CONN_STATE_DISCONNECTED
Channel disconnected.
Definition conn.h:804
@ BT_CONN_STATE_DISCONNECTING
Channel in disconnecting state.
Definition conn.h:810
@ BT_CONN_LE_CS_PROCEDURE_ABORTED
Definition conn.h:550
@ BT_CONN_LE_CS_PROCEDURE_COMPLETE
Definition conn.h:548
@ BT_CONN_LE_CS_PROCEDURE_INCOMPLETE
Definition conn.h:549
@ 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_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:1255
@ BT_CONN_LE_OPT_NO_1M
Disable LE 1M PHY.
Definition conn.h:1269
@ BT_CONN_LE_OPT_CODED
Enable LE Coded PHY.
Definition conn.h:1261
@ BT_SECURITY_ERR_OOB_NOT_AVAILABLE
OOB data is not available.
Definition conn.h:1540
@ BT_SECURITY_ERR_AUTH_REQUIREMENT
The requested security level could not be reached.
Definition conn.h:1543
@ BT_SECURITY_ERR_KEY_REJECTED
Distributed Key Rejected.
Definition conn.h:1555
@ BT_SECURITY_ERR_UNSPECIFIED
Pairing failed but the exact reason could not be specified.
Definition conn.h:1558
@ BT_SECURITY_ERR_INVALID_PARAM
Invalid parameters.
Definition conn.h:1552
@ BT_SECURITY_ERR_PAIR_NOT_SUPPORTED
Pairing is not supported.
Definition conn.h:1546
@ BT_SECURITY_ERR_AUTH_FAIL
Authentication failed.
Definition conn.h:1534
@ BT_SECURITY_ERR_PIN_OR_KEY_MISSING
PIN or encryption key is missing.
Definition conn.h:1537
@ BT_SECURITY_ERR_SUCCESS
Security procedure successful.
Definition conn.h:1531
@ BT_SECURITY_ERR_PAIR_NOT_ALLOWED
Pairing is not allowed.
Definition conn.h:1549
@ BT_CONN_LE_CS_SYNC_1M_PHY
LE 1M PHY.
Definition conn.h:472
@ BT_CONN_LE_CS_SYNC_2M_PHY
LE 2M PHY.
Definition conn.h:474
@ BT_CONN_LE_CS_SYNC_2M_2BT_PHY
LE 2M 2BT PHY.
Definition conn.h:476
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B1
Definition conn.h:1594
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B2
Definition conn.h:1601
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B3
Definition conn.h:1599
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B4
Definition conn.h:1600
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B2
Definition conn.h:1598
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A3_B1
Definition conn.h:1596
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A4_B1
Definition conn.h:1597
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B1
Definition conn.h:1595
@ BT_CONN_TYPE_LE
LE Connection Type.
Definition conn.h:258
@ BT_CONN_TYPE_ALL
All Connection Type.
Definition conn.h:266
@ BT_CONN_TYPE_BR
BR/EDR Connection Type.
Definition conn.h:260
@ BT_CONN_TYPE_ISO
ISO Connection Type.
Definition conn.h:264
@ BT_CONN_TYPE_SCO
SCO Connection Type.
Definition conn.h:262
@ BT_SECURITY_L4
Level 4: Authenticated Secure Connections and 128-bit key.
Definition conn.h:824
@ BT_SECURITY_L0
Level 0: Only for BR/EDR special cases, like SDP.
Definition conn.h:816
@ BT_SECURITY_L3
Level 3: Encryption and authentication (MITM).
Definition conn.h:822
@ BT_SECURITY_FORCE_PAIR
Bit to force new pairing procedure, bit-wise OR with requested security level.
Definition conn.h:828
@ BT_SECURITY_L1
Level 1: No encryption and no authentication.
Definition conn.h:818
@ BT_SECURITY_L2
Level 2: Encryption and no authentication (no MITM).
Definition conn.h:820
@ BT_CONN_LE_CS_CH3C_SHAPE_HAT
Use Hat shape for user-specified channel sequence.
Definition conn.h:490
@ BT_CONN_LE_CS_CH3C_SHAPE_X
Use X shape for user-specified channel sequence.
Definition conn.h:492
@ BT_CONN_LE_CS_PROCEDURES_ENABLED
Definition conn.h:1563
@ BT_CONN_LE_CS_PROCEDURES_DISABLED
Definition conn.h:1562
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_MIDDLE
Middle path loss zone entered.
Definition conn.h:988
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_LOW
Low path loss zone entered.
Definition conn.h:986
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_HIGH
High path loss zone entered.
Definition conn.h:990
@ BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE
Path loss has become unavailable.
Definition conn.h:992
@ BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP
AA-Only RTT variant is not supported.
Definition conn.h:273
@ BT_CONN_LE_CS_RTT_AA_ONLY_150NS
150ns time-of-flight accuracy.
Definition conn.h:277
@ BT_CONN_LE_CS_RTT_AA_ONLY_10NS
10ns time-of-flight accuracy.
Definition conn.h:275
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING
RTT with 96-bit sounding sequence.
Definition conn.h:458
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING
RTT with 32-bit sounding sequence.
Definition conn.h:456
@ BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM
RTT with 128-bit random sequence.
Definition conn.h:466
@ BT_CONN_LE_CS_RTT_TYPE_AA_ONLY
RTT AA only.
Definition conn.h:454
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM
RTT with 96-bit random sequence.
Definition conn.h:464
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM
RTT with 32-bit random sequence.
Definition conn.h:460
@ BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM
RTT with 64-bit random sequence.
Definition conn.h:462
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:3680
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT
Definition hci_types.h:3686
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3684
#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND
Definition hci_types.h:2611
#define BT_HCI_OP_LE_CS_SUB_MODE_1
Definition hci_types.h:2597
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3681
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT
Definition hci_types.h:3689
#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED
Definition hci_types.h:2582
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:3687
#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED
Definition hci_types.h:2583
#define BT_HCI_OP_LE_CS_SUB_MODE_3
Definition hci_types.h:2599
#define BT_HCI_OP_LE_CS_ACI_6
Definition hci_types.h:2626
#define BT_HCI_OP_LE_CS_ACI_1
Definition hci_types.h:2621
#define BT_HCI_OP_LE_CS_MAIN_MODE_3
Definition hci_types.h:2595
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS
Definition hci_types.h:3682
#define BT_HCI_OP_LE_CS_MAIN_MODE_2
Definition hci_types.h:2594
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND
Definition hci_types.h:2607
#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY
Definition hci_types.h:2605
#define BT_HCI_OP_LE_CS_ACI_3
Definition hci_types.h:2623
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B
Definition hci_types.h:2646
#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND
Definition hci_types.h:2609
#define BT_HCI_OP_LE_CS_CS_SYNC_1M
Definition hci_types.h:2613
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED
Definition hci_types.h:3674
#define BT_HCI_OP_LE_CS_ACI_0
Definition hci_types.h:2620
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND
Definition hci_types.h:2606
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND
Definition hci_types.h:2610
#define BT_HCI_OP_LE_CS_ACI_2
Definition hci_types.h:2622
#define BT_HCI_OP_LE_CS_SUB_MODE_UNUSED
Definition hci_types.h:2600
#define BT_HCI_LE_ZONE_ENTERED_MIDDLE
Definition hci_types.h:3458
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND
Definition hci_types.h:2608
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:3690
#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT
Definition hci_types.h:2615
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED
Definition hci_types.h:3688
#define BT_HCI_OP_LE_CS_ACI_7
Definition hci_types.h:2627
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT
Definition hci_types.h:2649
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE
Definition hci_types.h:3672
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X
Definition hci_types.h:2650
#define BT_HCI_OP_LE_CS_ACI_5
Definition hci_types.h:2625
#define BT_HCI_OP_LE_CS_SUB_MODE_2
Definition hci_types.h:2598
#define BT_HCI_OP_LE_CS_CS_SYNC_2M
Definition hci_types.h:2614
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED
Definition hci_types.h:3683
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE
Definition hci_types.h:3676
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL
Definition hci_types.h:3673
#define BT_HCI_OP_LE_CS_ACI_4
Definition hci_types.h:2624
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C
Definition hci_types.h:2647
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED
Definition hci_types.h:3678
#define BT_HCI_OP_LE_CS_MAIN_MODE_1
Definition hci_types.h:2593
#define BT_HCI_LE_ZONE_ENTERED_HIGH
Definition hci_types.h:3459
#define BT_HCI_LE_ZONE_ENTERED_LOW
Definition hci_types.h:3457
#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:2615
bool allow_role_switch
Definition conn.h:2616
Authenticated pairing callback structure.
Definition conn.h:2241
void(* passkey_entry)(struct bt_conn *conn)
Request the user to enter a passkey.
Definition conn.h:2339
void(* passkey_display)(struct bt_conn *conn, unsigned int passkey)
Display a passkey to the user.
Definition conn.h:2293
void(* passkey_confirm)(struct bt_conn *conn, unsigned int passkey)
Request the user to confirm a passkey.
Definition conn.h:2362
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:2271
void(* pincode_entry)(struct bt_conn *conn, bool highsec)
Request the user to enter a passkey.
Definition conn.h:2436
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:2380
void(* pairing_confirm)(struct bt_conn *conn)
Request confirmation for an incoming pairing.
Definition conn.h:2415
void(* cancel)(struct bt_conn *conn)
Cancel the ongoing user request.
Definition conn.h:2395
Authenticated pairing information callback structure.
Definition conn.h:2441
void(* pairing_failed)(struct bt_conn *conn, enum bt_security_err reason)
notify that pairing process has failed.
Definition conn.h:2458
void(* pairing_complete)(struct bt_conn *conn, bool bonded)
notify that pairing procedure was complete.
Definition conn.h:2451
void(* bond_deleted)(uint8_t id, const bt_addr_le_t *peer)
Notify that bond has been deleted.
Definition conn.h:2469
void(* br_bond_deleted)(const bt_addr_t *peer)
Notify that bond of classic has been deleted.
Definition conn.h:2479
sys_snode_t node
Internally used field for list handling.
Definition conn.h:2483
BR/EDR Connection Info Structure.
Definition conn.h:793
const bt_addr_t * dst
Destination (Remote) BR/EDR address.
Definition conn.h:794
BR/EDR Connection Remote Info structure.
Definition conn.h:878
uint8_t num_pages
Number of pages in the remote feature set.
Definition conn.h:884
const uint8_t * features
Remote feature set (pages of bitmasks).
Definition conn.h:881
Connection callback structure.
Definition conn.h:1651
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:1748
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:1820
void(* recycled)(void)
A connection object has been returned to the pool.
Definition conn.h:1709
bool(* le_param_req)(struct bt_conn *conn, struct bt_le_conn_param *param)
LE connection parameter update request.
Definition conn.h:1735
void(* disconnected)(struct bt_conn *conn, uint8_t reason)
A connection has been disconnected.
Definition conn.h:1695
void(* connected)(struct bt_conn *conn, uint8_t err)
A new connection has been established.
Definition conn.h:1676
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:1807
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:1781
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:1760
void(* remote_info_available)(struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Remote information procedures has completed.
Definition conn.h:1794
Connection Info Structure.
Definition conn.h:850
uint8_t id
Which local identity the connection was created with.
Definition conn.h:856
struct bt_conn_le_info le
LE Connection specific Info.
Definition conn.h:860
enum bt_conn_type type
Connection Type.
Definition conn.h:852
struct bt_conn_br_info br
BR/EDR Connection specific Info.
Definition conn.h:862
uint8_t role
Connection Role.
Definition conn.h:854
struct bt_security_info security
Security specific info.
Definition conn.h:867
enum bt_conn_state state
Connection state.
Definition conn.h:865
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS)
Definition conn.h:1301
uint16_t window
Scan window (N * 0.625 ms)
Definition conn.h:1295
uint32_t options
Bit-field of create connection options.
Definition conn.h:1275
uint16_t timeout
Connection initiation timeout (N * 10 MS)
Definition conn.h:1316
uint16_t interval
Scan interval (N * 0.625 ms)
Definition conn.h:1285
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS)
Definition conn.h:1307
const bt_addr_le_t * peer
Remote address.
Definition conn.h:1397
uint8_t subevent
The subevent where the connection will be initiated.
Definition conn.h:1400
Remote channel sounding capabilities for LE connections supporting CS.
Definition conn.h:301
uint16_t t_ip1_times_supported
Optional T_IP1 time durations during CS steps.
Definition conn.h:372
bool phase_based_nadm_random_supported
Phase-based normalized attack detector metric when a CS_SYNC with random sequence is received.
Definition conn.h:351
uint16_t t_fcs_times_supported
Optional T_FCS time durations during CS steps.
Definition conn.h:396
bool cs_without_fae_supported
Subfeature: CS with no Frequency Actuation Error.
Definition conn.h:357
uint8_t rtt_random_payload_n
Number of CS steps needed to achieve the accuracy requirements for RTT Random Payload.
Definition conn.h:343
bool cs_sync_2m_phy_supported
CS_SYNC LE 2M PHY.
Definition conn.h:353
enum bt_conn_le_cs_capability_rtt_aa_only rtt_aa_only_precision
RTT AA-Only.
Definition conn.h:321
uint8_t num_antennas_supported
Number of antennas.
Definition conn.h:311
uint8_t t_sw_time
Time in microseconds for the antenna switch period of the CS tones.
Definition conn.h:404
bool cs_sync_2m_2bt_phy_supported
CS_SYNC LE 2M 2BT PHY.
Definition conn.h:355
bool initiator_supported
Initiator role.
Definition conn.h:315
bool reflector_supported
Reflector role.
Definition conn.h:317
uint16_t t_pm_times_supported
Optional T_PM time durations during CS steps.
Definition conn.h:402
uint8_t num_config_supported
Number of CS configurations.
Definition conn.h:303
uint8_t rtt_sounding_n
Number of CS steps needed to achieve the accuracy requirements for RTT Sounding.
Definition conn.h:337
bool phase_based_nadm_sounding_supported
Phase-based normalized attack detector metric when a CS_SYNC with sounding sequence is received.
Definition conn.h:347
bool mode_3_supported
Mode-3.
Definition conn.h:319
bool chsel_alg_3c_supported
Subfeature: Channel Selection Algorithm #3c.
Definition conn.h:359
enum bt_conn_le_cs_capability_rtt_random_payload rtt_random_payload_precision
RTT Random Payload.
Definition conn.h:325
uint8_t rtt_aa_only_n
Number of CS steps needed to achieve the accuracy requirements for RTT AA Only.
Definition conn.h:331
uint8_t max_antenna_paths_supported
Maximum number of antenna paths.
Definition conn.h:313
enum bt_conn_le_cs_capability_rtt_sounding rtt_sounding_precision
RTT Sounding.
Definition conn.h:323
bool pbr_from_rtt_sounding_seq_supported
Subfeature: Phase-based Ranging from RTT sounding sequence.
Definition conn.h:361
uint8_t tx_snr_capability
Supported SNR levels used in RTT packets.
Definition conn.h:413
uint16_t max_consecutive_procedures_supported
Maximum number of consecutive CS procedures.
Definition conn.h:309
uint16_t t_ip2_times_supported
Optional T_IP2 time durations during CS steps.
Definition conn.h:383
Channel sounding configuration.
Definition conn.h:496
enum bt_conn_le_cs_main_mode main_mode_type
Main CS mode type.
Definition conn.h:500
enum bt_conn_le_cs_rtt_type rtt_type
RTT type.
Definition conn.h:517
enum bt_conn_le_cs_sync_phy cs_sync_phy
CS Sync PHY.
Definition conn.h:519
uint8_t t_fcs_time_us
Time in microseconds for frequency changes.
Definition conn.h:535
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:504
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:511
enum bt_conn_le_cs_sub_mode sub_mode_type
Sub CS mode type.
Definition conn.h:502
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:543
enum bt_conn_le_cs_chsel_type channel_selection_type
Channel selection type.
Definition conn.h:525
uint8_t t_ip2_time_us
Interlude time in microseconds between the CS tones.
Definition conn.h:533
uint8_t mode_0_steps
Number of CS mode-0 steps to be included at the beginning of each CS subevent.
Definition conn.h:513
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:523
enum bt_conn_le_cs_ch3c_shape ch3c_shape
User-specified channel sequence shape.
Definition conn.h:527
uint8_t t_ip1_time_us
Interlude time in microseconds between the RTT packets.
Definition conn.h:531
uint8_t id
CS configuration ID.
Definition conn.h:498
enum bt_conn_le_cs_role role
CS role.
Definition conn.h:515
uint8_t t_pm_time_us
Time in microseconds for the phase measurement period of the CS tones.
Definition conn.h:537
uint8_t ch3c_jump
Number of channels skipped in each rising and falling sequence
Definition conn.h:529
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:506
Remote FAE Table for LE connections supporting CS.
Definition conn.h:417
int8_t * remote_fae_table
Definition conn.h:418
uint8_t config_id
Definition conn.h:1606
enum bt_conn_le_cs_tone_antenna_config_selection tone_antenna_config_selection
Definition conn.h:1612
uint8_t subevents_per_event
Definition conn.h:1621
uint16_t event_interval
Definition conn.h:1629
uint16_t subevent_interval
Definition conn.h:1626
uint16_t procedure_interval
Definition conn.h:1632
uint16_t procedure_count
Definition conn.h:1635
enum bt_conn_le_cs_procedure_enable_state state
Definition conn.h:1609
uint16_t max_procedure_len
Definition conn.h:1638
uint32_t subevent_len
Definition conn.h:1618
int8_t selected_tx_power
Definition conn.h:1615
Subevent data for LE connections supporting CS.
Definition conn.h:584
uint16_t procedure_counter
CS procedure count associated with these results.
Definition conn.h:605
uint8_t num_antenna_paths
Number of antenna paths used during the phase measurement stage.
Definition conn.h:655
uint8_t num_steps_reported
Number of CS steps in the subevent.
Definition conn.h:658
enum bt_conn_le_cs_subevent_done_status subevent_done_status
Subevent status.
Definition conn.h:638
struct net_buf_simple * step_data_buf
Pointer to buffer containing step data.
Definition conn.h:668
uint16_t start_acl_conn_event
Starting ACL connection event counter.
Definition conn.h:599
enum bt_conn_le_cs_procedure_abort_reason procedure_abort_reason
Abort reason.
Definition conn.h:645
uint16_t frequency_compensation
Frequency compensation value in units of 0.01 ppm.
Definition conn.h:614
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:663
uint8_t config_id
CS configuration identifier.
Definition conn.h:593
int8_t reference_power_level
Reference power level in dBm.
Definition conn.h:622
enum bt_conn_le_cs_procedure_done_status procedure_done_status
Procedure status.
Definition conn.h:624
enum bt_conn_le_cs_subevent_abort_reason subevent_abort_reason
Abort reason.
Definition conn.h:652
struct bt_conn_le_cs_subevent_result::@84 header
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
LE Connection Info Structure.
Definition conn.h:747
const bt_addr_le_t * dst
Destination (Remote) Identity Address or remote Resolvable Private Address (RPA) before identity has ...
Definition conn.h:753
const struct bt_conn_le_phy_info * phy
Definition conn.h:763
const bt_addr_le_t * remote
Remote device address used during connection setup.
Definition conn.h:757
const bt_addr_le_t * local
Local device address used during connection setup.
Definition conn.h:755
const bt_addr_le_t * src
Source (Local) Identity Address.
Definition conn.h:749
uint16_t interval
Connection interval.
Definition conn.h:758
uint16_t latency
Connection peripheral latency.
Definition conn.h:759
const struct bt_conn_le_data_len_info * data_len
Definition conn.h:768
uint16_t timeout
Connection supervision timeout.
Definition conn.h:760
LE Path Loss Monitoring Parameters Structure as defined in Core Spec.
Definition conn.h:1012
uint8_t high_threshold
High threshold for the path loss (dB).
Definition conn.h:1014
uint8_t low_threshold
Low threshold for the path loss (dB).
Definition conn.h:1018
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:1024
uint8_t high_hysteresis
Hysteresis value for the high threshold (dB).
Definition conn.h:1016
uint8_t low_hysteresis
Hysteresis value for the low threshold (dB).
Definition conn.h:1020
LE Path Loss Monitoring Threshold Change Report Structure.
Definition conn.h:1000
enum bt_conn_le_path_loss_zone zone
Path Loss zone as documented in Core Spec.
Definition conn.h:1003
uint8_t path_loss
Current path loss (dB).
Definition conn.h:1006
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
LE Connection Remote Info Structure.
Definition conn.h:871
const uint8_t * features
Remote LE feature set (bitmask).
Definition conn.h:874
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:942
enum bt_conn_le_tx_power_phy phy
Phy of Transmit power reporting.
Definition conn.h:950
int8_t delta
Change in transmit power level.
Definition conn.h:973
uint8_t reason
Reason for Transmit power reporting, as documented in Core Spec.
Definition conn.h:947
int8_t tx_power_level
Transmit power level.
Definition conn.h:960
uint8_t tx_power_level_flag
Bit 0: Transmit power level is at minimum level.
Definition conn.h:965
LE Transmit Power Level Structure.
Definition conn.h:928
int8_t max_level
Output: maximum transmit power level.
Definition conn.h:937
int8_t current_level
Output: current transmit power level.
Definition conn.h:934
uint8_t phy
Input: 1M, 2M, Coded S2 or Coded S8.
Definition conn.h:931
Info Structure for OOB pairing.
Definition conn.h:2177
struct bt_conn_oob_info::@90::@92 lesc
LE Secure Connections OOB pairing parameters.
enum bt_conn_oob_info::@89 type
Type of OOB pairing method.
@ BT_CONN_OOB_NO_DATA
No OOB data requested.
Definition conn.h:2202
@ BT_CONN_OOB_LOCAL_ONLY
Local OOB data requested.
Definition conn.h:2193
@ BT_CONN_OOB_REMOTE_ONLY
Remote OOB data requested.
Definition conn.h:2196
@ BT_CONN_OOB_BOTH_PEERS
Both local and remote OOB data requested.
Definition conn.h:2199
enum bt_conn_oob_info::@90::@92::@93 oob_config
OOB data configuration.
@ BT_CONN_OOB_LE_LEGACY
LE legacy pairing.
Definition conn.h:2181
@ BT_CONN_OOB_LE_SC
LE SC pairing.
Definition conn.h:2184
Pairing request and pairing response info structure.
Definition conn.h:2215
uint8_t resp_key_dist
Responder Key Distribution/Generation, Core Spec.
Definition conn.h:2236
uint8_t io_capability
IO Capability, Core Spec.
Definition conn.h:2217
uint8_t init_key_dist
Initiator Key Distribution/Generation, Core Spec.
Definition conn.h:2231
uint8_t max_enc_key_size
Maximum Encryption Key Size, Core Spec.
Definition conn.h:2226
uint8_t auth_req
AuthReq, Core Spec.
Definition conn.h:2223
uint8_t oob_data_flag
OOB data flag, Core Spec.
Definition conn.h:2220
Connection Remote Info Structure.
Definition conn.h:892
uint8_t version
Remote Link Layer version.
Definition conn.h:897
uint16_t subversion
Per-manufacturer unique revision.
Definition conn.h:903
uint16_t manufacturer
Remote manufacturer identifier.
Definition conn.h:900
uint8_t type
Connection Type.
Definition conn.h:894
struct bt_conn_br_remote_info br
BR/EDR connection remote info.
Definition conn.h:910
struct bt_conn_le_remote_info le
LE connection remote info.
Definition conn.h:907
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:2901
Security Info Structure.
Definition conn.h:840
uint8_t enc_key_size
Encryption Key Size.
Definition conn.h:844
bt_security_t level
Security Level.
Definition conn.h:842
enum bt_security_flag flags
Flags.
Definition conn.h:846
Simple network buffer representation.
Definition net_buf.h:89