11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_CONN_H_
60#define BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
62 .interval_min = (int_min), \
63 .interval_max = (int_max), \
75#define BT_LE_CONN_PARAM(int_min, int_max, lat, to) \
76 ((struct bt_le_conn_param[]) { \
77 BT_LE_CONN_PARAM_INIT(int_min, int_max, lat, to) \
85#define BT_LE_CONN_PARAM_DEFAULT \
86 BT_LE_CONN_PARAM(BT_GAP_INIT_CONN_INT_MIN, BT_GAP_INIT_CONN_INT_MAX, 0, \
87 BT_GAP_MS_TO_CONN_TIMEOUT(4000))
119#define BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
121 .options = BT_CONN_LE_PHY_OPT_NONE, \
122 .pref_tx_phy = (_pref_tx_phy), \
123 .pref_rx_phy = (_pref_rx_phy), \
131#define BT_CONN_LE_PHY_PARAM(_pref_tx_phy, _pref_rx_phy) \
132 ((struct bt_conn_le_phy_param []) { \
133 BT_CONN_LE_PHY_PARAM_INIT(_pref_tx_phy, _pref_rx_phy) \
137#define BT_CONN_LE_PHY_PARAM_1M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M, \
141#define BT_CONN_LE_PHY_PARAM_2M BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_2M, \
145#define BT_CONN_LE_PHY_PARAM_CODED BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_CODED, \
149#define BT_CONN_LE_PHY_PARAM_ALL BT_CONN_LE_PHY_PARAM(BT_GAP_LE_PHY_1M | \
151 BT_GAP_LE_PHY_CODED, \
181#define BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
183 .tx_max_len = (_tx_max_len), \
184 .tx_max_time = (_tx_max_time), \
192#define BT_CONN_LE_DATA_LEN_PARAM(_tx_max_len, _tx_max_time) \
193 ((struct bt_conn_le_data_len_param[]) { \
194 BT_CONN_LE_DATA_LEN_PARAM_INIT(_tx_max_len, _tx_max_time) \
198#define BT_LE_DATA_LEN_PARAM_DEFAULT \
199 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_DEFAULT, \
200 BT_GAP_DATA_TIME_DEFAULT)
203#define BT_LE_DATA_LEN_PARAM_MAX \
204 BT_CONN_LE_DATA_LEN_PARAM(BT_GAP_DATA_LEN_MAX, \
205 BT_GAP_DATA_TIME_MAX)
264#define BT_CONN_LE_MAX_CONN_INTERVAL_GROUPS 41
442#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL_IFS \
443 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
444 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK)
446#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_ACL \
447 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_CP_MASK | \
448 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_ACL_PC_MASK | \
449 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MCES_MASK)
451#define BT_CONN_LE_FRAME_SPACE_TYPES_MASK_CIS \
452 (BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_IFS_CIS_MASK | \
453 BT_HCI_LE_FRAME_SPACE_UPDATE_SPACING_TYPE_MSS_CIS_MASK)
458#define BT_CONN_LE_FRAME_SPACE_MAX (10000U)
719#define BT_CONN_LE_CS_MODE_MAIN_MODE_PART(x) ((x) & 0x3)
735#define BT_CONN_LE_CS_MODE_SUB_MODE_PART(x) (((x) >> 4) & 0x3)
1035 void (*func)(
struct bt_conn *conn,
void *data),
1086#if !defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
1103#if defined(CONFIG_BT_USER_PHY_UPDATE)
1107#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
1112#if defined(CONFIG_BT_SUBRATING)
1125#define BT_CONN_INTERVAL_TO_MS(interval) ((interval) * 5U / 4U)
1131#define BT_CONN_INTERVAL_TO_US(interval) ((interval) * 1250U)
1137#define BT_CONN_SCI_INTERVAL_TO_US(_interval) ((_interval) * BT_HCI_LE_SCI_INTERVAL_UNIT_US)
1167typedef enum __packed {
1481 bool remote_enable);
1797#define BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1799 .options = (_options), \
1800 .interval = (_interval), \
1801 .window = (_window), \
1802 .interval_coded = 0, \
1803 .window_coded = 0, \
1813#define BT_CONN_LE_CREATE_PARAM(_options, _interval, _window) \
1814 ((struct bt_conn_le_create_param[]) { \
1815 BT_CONN_LE_CREATE_PARAM_INIT(_options, _interval, _window) \
1821#define BT_CONN_LE_CREATE_CONN \
1822 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1823 BT_GAP_SCAN_FAST_INTERVAL, \
1824 BT_GAP_SCAN_FAST_INTERVAL)
1830#define BT_CONN_LE_CREATE_CONN_AUTO \
1831 BT_CONN_LE_CREATE_PARAM(BT_CONN_LE_OPT_NONE, \
1832 BT_GAP_SCAN_FAST_INTERVAL, \
1833 BT_GAP_SCAN_FAST_WINDOW)
2207#if defined(CONFIG_BT_SMP)
2221#if defined(CONFIG_BT_SMP) || defined(CONFIG_BT_CLASSIC)
2242#if defined(CONFIG_BT_REMOTE_INFO)
2255#if defined(CONFIG_BT_POWER_MODE_CONTROL)
2267#if defined(CONFIG_BT_USER_PHY_UPDATE)
2280#if defined(CONFIG_BT_USER_DATA_LEN_UPDATE)
2293#if defined(CONFIG_BT_DF_CONNECTION_CTE_RX)
2300 void (*cte_report_cb)(
struct bt_conn *conn,
2304#if defined(CONFIG_BT_TRANSMIT_POWER_CONTROL)
2316 void (*tx_power_report)(
struct bt_conn *conn,
2320#if defined(CONFIG_BT_PATH_LOSS_MONITORING)
2330 void (*path_loss_threshold_report)(
struct bt_conn *conn,
2334#if defined(CONFIG_BT_SUBRATING)
2345 void (*subrate_changed)(
struct bt_conn *conn,
2349#if defined(CONFIG_BT_SHORTER_CONNECTION_INTERVALS) || defined(__DOXYGEN__)
2374#if defined(CONFIG_BT_LE_EXTENDED_FEAT_SET)
2388 void (*read_all_remote_feat_complete)(
2393#if defined(CONFIG_BT_FRAME_SPACE_UPDATE)
2408 void (*frame_space_updated)(
2413#if defined(CONFIG_BT_CHANNEL_SOUNDING)
2426 void (*le_cs_read_remote_capabilities_complete)(
struct bt_conn *conn,
2442 void (*le_cs_read_remote_fae_table_complete)(
struct bt_conn *conn,
2457 void (*le_cs_config_complete)(
struct bt_conn *conn,
2469 void (*le_cs_config_removed)(
struct bt_conn *conn,
uint8_t config_id);
2479 void (*le_cs_subevent_data_available)(
struct bt_conn *conn,
2492 void (*le_cs_security_enable_complete)(
struct bt_conn *conn,
uint8_t status);
2505 void (*le_cs_procedure_enable_complete)(
2511#if defined(CONFIG_BT_CLASSIC)
2522#if defined(CONFIG_BT_CONN_DYNAMIC_CALLBACKS)
2557#define BT_CONN_CB_DEFINE(_name) \
2558 static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
2559 _CONCAT(bt_conn_cb_, \
2568#if defined(CONFIG_BT_SECURITY_ERR_TO_STR)
2706#define BT_PASSKEY_INVALID 0xffffffff
2758#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2795#define BT_PASSKEY_RAND 0xffffffff
2799#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
2853#if defined(CONFIG_BT_PASSKEY_KEYPRESS)
2875 void (*passkey_display_keypress)(
struct bt_conn *conn,
2975#if defined(CONFIG_BT_CLASSIC)
2997#if defined(CONFIG_BT_APP_PASSKEY)
3053#if defined(CONFIG_BT_CLASSIC)
3205#define BT_BR_CONN_PARAM_INIT(role_switch) \
3207 .allow_role_switch = (role_switch), \
3214#define BT_BR_CONN_PARAM(role_switch) \
3215 ((struct bt_br_conn_param[]) { \
3216 BT_BR_CONN_PARAM_INIT(role_switch) \
3222#define BT_BR_CONN_PARAM_DEFAULT BT_BR_CONN_PARAM(true)
3284#if defined(CONFIG_BT_POWER_MODE_CONTROL)
3296int bt_conn_br_enter_sniff_mode(
struct bt_conn *conn,
uint16_t min_interval,
3305int bt_conn_br_exit_sniff_mode(
struct bt_conn *conn);
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:767
int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const uint8_t *tk)
Set OOB Temporary Key to be used for pairing.
struct bt_conn * bt_conn_lookup_addr_br(const bt_addr_t *peer)
Look up an existing BR connection by address.
int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason)
Disconnect from a remote device or cancel pending connection.
bt_conn_le_cs_capability_rtt_sounding
Supported Sounding Sequence RTT precision.
Definition conn.h:548
const bt_addr_t * bt_conn_get_dst_br(const struct bt_conn *conn)
Get destination (peer) address of a connection.
int bt_conn_auth_cb_register(const struct bt_conn_auth_cb *cb)
Register authentication callbacks.
struct bt_conn * bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer)
Look up an existing connection by address.
int bt_conn_auth_keypress_notify(struct bt_conn *conn, enum bt_conn_auth_keypress type)
Send Passkey Keypress Notification during pairing.
int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info)
Get connection info.
int bt_conn_le_conn_rate_request(struct bt_conn *conn, const struct bt_conn_le_conn_rate_param *params)
Request New Connection Rate Parameters.
int bt_conn_le_read_min_conn_interval_groups(struct bt_conn_le_min_conn_interval_info *info)
Read Minimum Supported Connection Interval Groups.
bt_conn_le_cs_mode
Channel sounding mode (main and sub-mode).
Definition conn.h:748
bt_security_flag
Security Info Flags.
Definition conn.h:1185
bt_conn_le_cs_procedure_abort_reason
Procedure abort reason.
Definition conn.h:886
static const char * bt_security_err_to_str(enum bt_security_err err)
Converts a security error to string.
Definition conn.h:2571
int bt_passkey_set(unsigned int passkey)
Set a fixed passkey to be used for pairing.
bt_conn_le_cs_chsel_type
Channel sounding channel selection type.
Definition conn.h:803
int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
Reply with entered passkey.
int bt_conn_br_switch_role(const struct bt_conn *conn, uint8_t role)
Change the role of the conn.
int bt_conn_auth_pairing_confirm(struct bt_conn *conn)
Reply if incoming pairing was confirmed by user.
int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin)
Reply with entered PIN code.
int bt_conn_set_bondable(struct bt_conn *conn, bool enable)
Set/clear the bonding flag for a given connection.
void bt_conn_unref(struct bt_conn *conn)
Decrement a connection's reference count.
bt_security_t bt_conn_get_security(const struct bt_conn *conn)
Get security level for a connection.
bt_conn_le_cs_capability_rtt_random_payload
Supported Random Payload RTT precision.
Definition conn.h:558
bt_conn_auth_keypress
Passkey Keypress Notification type.
Definition conn.h:1387
void bt_conn_foreach(enum bt_conn_type type, void(*func)(struct bt_conn *conn, void *data), void *data)
Iterate through all bt_conn objects.
int bt_conn_create_auto_stop(void)
Stop automatic connect creation.
bt_conn_le_cs_subevent_abort_reason
Subevent abort reason.
Definition conn.h:898
int bt_conn_le_set_path_loss_mon_param(struct bt_conn *conn, const struct bt_conn_le_path_loss_reporting_param *param)
Set Path Loss Monitoring Parameters.
bt_conn_le_tx_power_phy
Definition conn.h:1269
int bt_conn_le_subrate_request(struct bt_conn *conn, const struct bt_conn_le_subrate_param *params)
Request New Subrating Parameters.
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:880
int bt_conn_le_set_path_loss_mon_enable(struct bt_conn *conn, bool enable)
Enable or Disable Path Loss Monitoring.
bt_conn_state
Definition conn.h:1155
void bt_le_oob_set_legacy_flag(bool enable)
Allow/disallow remote legacy OOB data to be used for pairing.
int bt_conn_le_create_synced(const struct bt_le_ext_adv *adv, const struct bt_conn_le_create_synced_param *synced_param, const struct bt_le_conn_param *conn_param, struct bt_conn **conn)
Create a connection to a synced device.
bt_conn_le_cs_procedure_done_status
Procedure done status.
Definition conn.h:873
int bt_conn_le_read_min_conn_interval(uint16_t *min_interval_us)
Read Minimum Supported Connection Interval.
int bt_conn_le_set_tx_power_report_enable(struct bt_conn *conn, bool local_enable, bool remote_enable)
Enable transmit power reporting.
int bt_conn_le_get_tx_power_level(struct bt_conn *conn, struct bt_conn_le_tx_power *tx_power_level)
Get connection transmit power level.
int bt_conn_le_enhanced_get_tx_power_level(struct bt_conn *conn, struct bt_conn_le_tx_power *tx_power)
Get local enhanced connection transmit power level.
bt_security_err
Definition conn.h:1984
int bt_conn_cb_register(struct bt_conn_cb *cb)
Register connection callbacks.
bt_conn_le_cs_sync_phy
Channel sounding PHY used for CS sync.
Definition conn.h:793
int bt_conn_le_param_update(struct bt_conn *conn, const struct bt_le_conn_param *param)
Update the connection parameters.
int bt_conn_br_set_role_switch_enable(const struct bt_conn *conn, bool enable)
Enable/disable role switch of the connection by setting the connection's link policy.
int bt_conn_le_frame_space_update(struct bt_conn *conn, const struct bt_conn_le_frame_space_update_param *params)
Update frame space.
bt_conn_le_cs_tone_antenna_config_selection
CS Test Tone Antenna Config Selection.
Definition conn.h:2048
int bt_conn_auth_passkey_confirm(struct bt_conn *conn)
Reply if passkey was confirmed to match by user.
bt_conn_type
Connection Type.
Definition conn.h:523
int bt_conn_le_read_all_remote_features(struct bt_conn *conn, uint8_t pages_requested)
Read remote feature pages.
int bt_le_oob_set_sc_data(struct bt_conn *conn, const struct bt_le_oob_sc_data *oobd_local, const struct bt_le_oob_sc_data *oobd_remote)
Set OOB data during LE Secure Connections (SC) pairing procedure.
int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Get connection info for the remote device.
int bt_conn_auth_info_cb_register(struct bt_conn_auth_info_cb *cb)
Register authentication information callbacks.
int bt_conn_auth_info_cb_unregister(struct bt_conn_auth_info_cb *cb)
Unregister authentication information callbacks.
int bt_conn_le_subrate_set_defaults(const struct bt_conn_le_subrate_param *params)
Set Default Connection Subrating Parameters.
int bt_conn_le_conn_rate_set_defaults(const struct bt_conn_le_conn_rate_param *params)
Set Default Connection Rate Parameters.
void bt_le_oob_set_sc_flag(bool enable)
Allow/disallow remote LE SC OOB data to be used for pairing.
int bt_conn_cb_unregister(struct bt_conn_cb *cb)
Unregister connection callbacks.
uint8_t bt_conn_index(const struct bt_conn *conn)
Get array index of a connection.
#define BT_CONN_LE_MAX_CONN_INTERVAL_GROUPS
Maximum Connection Interval Groups possible.
Definition conn.h:264
int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec)
Set security level for a connection.
int bt_conn_le_phy_update(struct bt_conn *conn, const struct bt_conn_le_phy_param *param)
Update the connection PHY parameters.
bt_conn_le_frame_space_update_initiator
Frame space update initiator.
Definition conn.h:461
int bt_conn_le_create_auto(const struct bt_conn_le_create_param *create_param, const struct bt_le_conn_param *conn_param)
Automatically connect to remote devices in the filter accept list.
bt_security_t
Security level.
Definition conn.h:1167
bt_conn_le_cs_ch3c_shape
Channel sounding channel sequence shape.
Definition conn.h:811
bt_conn_le_cs_procedure_enable_state
Definition conn.h:2016
bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type)
Function to determine the type of a connection.
bt_conn_le_path_loss_zone
Path Loss zone that has been entered.
Definition conn.h:1339
struct bt_conn * bt_conn_create_br(const bt_addr_t *peer, const struct bt_br_conn_param *param)
Initiate an BR/EDR connection to a remote device.
bt_conn_le_cs_capability_rtt_aa_only
Supported AA-Only RTT precision.
Definition conn.h:538
uint8_t bt_conn_enc_key_size(const struct bt_conn *conn)
Get encryption key size.
bt_conn_le_cs_rtt_type
Channel sounding RTT type.
Definition conn.h:775
@ BT_CONN_LE_PHY_OPT_CODED_S2
LE Coded using S=2 coding preferred when transmitting.
Definition conn.h:101
@ BT_CONN_LE_PHY_OPT_CODED_S8
LE Coded using S=8 coding preferred when transmitting.
Definition conn.h:104
@ BT_CONN_LE_PHY_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:98
@ BT_CONN_LE_CS_ROLE_REFLECTOR
CS reflector role.
Definition conn.h:771
@ BT_CONN_LE_CS_ROLE_INITIATOR
CS initiator role.
Definition conn.h:769
@ BT_CONN_LE_CS_RTT_SOUNDING_150NS
150ns time-of-flight accuracy.
Definition conn.h:554
@ BT_CONN_LE_CS_RTT_SOUNDING_NOT_SUPP
Sounding Sequence RTT variant is not supported.
Definition conn.h:550
@ BT_CONN_LE_CS_RTT_SOUNDING_10NS
10ns time-of-flight accuracy.
Definition conn.h:552
@ BT_CONN_LE_CS_MAIN_MODE_3_SUB_MODE_2
Main mode 3 (RTT and PBR), sub-mode 2 (PBR).
Definition conn.h:762
@ BT_CONN_LE_CS_MAIN_MODE_3_NO_SUB_MODE
Main mode 3 (RTT and PBR), sub-mode: unused.
Definition conn.h:754
@ BT_CONN_LE_CS_MAIN_MODE_1_NO_SUB_MODE
Main mode 1 (RTT), sub-mode: unused.
Definition conn.h:750
@ BT_CONN_LE_CS_MAIN_MODE_2_NO_SUB_MODE
Main mode 2 (PBR), sub-mode: unused.
Definition conn.h:752
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_1
Main mode 2 (PBR), sub-mode 1 (RTT).
Definition conn.h:756
@ BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_3
Main mode 2 (PBR), sub-mode 3 (RTT and PBR).
Definition conn.h:759
@ BT_SECURITY_FLAG_OOB
Paired with Out of Band method.
Definition conn.h:1189
@ BT_SECURITY_FLAG_SC
Paired with Secure Connections.
Definition conn.h:1187
@ BT_CONN_LE_CS_PROCEDURE_ABORT_REQUESTED
Definition conn.h:888
@ BT_CONN_LE_CS_PROCEDURE_ABORT_TOO_FEW_CHANNELS
Definition conn.h:890
@ BT_CONN_LE_CS_PROCEDURE_NOT_ABORTED
Definition conn.h:887
@ BT_CONN_LE_CS_PROCEDURE_ABORT_UNSPECIFIED
Definition conn.h:894
@ BT_CONN_LE_CS_PROCEDURE_ABORT_CHMAP_INSTANT_PASSED
Definition conn.h:892
@ BT_CONN_LE_CS_CHSEL_TYPE_3C
Use Channel Selection Algorithm #3c for non-mode-0 CS steps.
Definition conn.h:807
@ BT_CONN_LE_CS_CHSEL_TYPE_3B
Use Channel Selection Algorithm #3b for non-mode-0 CS steps.
Definition conn.h:805
@ BT_CONN_LE_OPT_NONE
Convenience value when no options are specified.
Definition conn.h:1727
@ BT_CONN_LE_OPT_NO_1M
Disable LE 1M PHY.
Definition conn.h:1741
@ BT_CONN_LE_OPT_CODED
Enable LE Coded PHY.
Definition conn.h:1733
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_10NS
10ns time-of-flight accuracy.
Definition conn.h:562
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_NOT_SUPP
Random Payload RTT variant is not supported.
Definition conn.h:560
@ BT_CONN_LE_CS_RTT_RANDOM_PAYLOAD_150NS
150ns time-of-flight accuracy.
Definition conn.h:564
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ERASED
Definition conn.h:1390
@ BT_CONN_AUTH_KEYPRESS_DIGIT_ENTERED
Definition conn.h:1389
@ BT_CONN_AUTH_KEYPRESS_CLEARED
Definition conn.h:1391
@ BT_CONN_AUTH_KEYPRESS_ENTRY_STARTED
Definition conn.h:1388
@ BT_CONN_AUTH_KEYPRESS_ENTRY_COMPLETED
Definition conn.h:1392
@ BT_CONN_LE_CS_SUBEVENT_NOT_ABORTED
Definition conn.h:899
@ BT_CONN_LE_CS_SUBEVENT_ABORT_UNSPECIFIED
Definition conn.h:906
@ BT_CONN_LE_CS_SUBEVENT_ABORT_REQUESTED
Definition conn.h:900
@ BT_CONN_LE_CS_SUBEVENT_ABORT_SCHED_CONFLICT
Definition conn.h:904
@ BT_CONN_LE_CS_SUBEVENT_ABORT_NO_CS_SYNC
Definition conn.h:902
@ BT_CONN_LE_TX_POWER_PHY_NONE
Convenience macro for when no PHY is set.
Definition conn.h:1271
@ BT_CONN_LE_TX_POWER_PHY_CODED_S2
LE Coded PHY using S=2 coding.
Definition conn.h:1279
@ BT_CONN_LE_TX_POWER_PHY_CODED_S8
LE Coded PHY using S=8 coding.
Definition conn.h:1277
@ BT_CONN_LE_TX_POWER_PHY_1M
LE 1M PHY.
Definition conn.h:1273
@ BT_CONN_LE_TX_POWER_PHY_2M
LE 2M PHY.
Definition conn.h:1275
@ BT_CONN_LE_CS_SUBEVENT_ABORTED
Definition conn.h:882
@ BT_CONN_LE_CS_SUBEVENT_COMPLETE
Definition conn.h:881
@ BT_CONN_STATE_CONNECTING
Channel in connecting state.
Definition conn.h:1159
@ BT_CONN_STATE_CONNECTED
Channel connected and ready for upper layer traffic on it.
Definition conn.h:1161
@ BT_CONN_STATE_DISCONNECTED
Channel disconnected.
Definition conn.h:1157
@ BT_CONN_STATE_DISCONNECTING
Channel in disconnecting state.
Definition conn.h:1163
@ BT_CONN_LE_CS_PROCEDURE_ABORTED
Definition conn.h:876
@ BT_CONN_LE_CS_PROCEDURE_COMPLETE
Definition conn.h:874
@ BT_CONN_LE_CS_PROCEDURE_INCOMPLETE
Definition conn.h:875
@ BT_CONN_ROLE_PERIPHERAL
Definition conn.h:1152
@ BT_CONN_ROLE_CENTRAL
Definition conn.h:1151
@ BT_SECURITY_ERR_OOB_NOT_AVAILABLE
OOB data is not available.
Definition conn.h:1995
@ BT_SECURITY_ERR_AUTH_REQUIREMENT
The requested security level could not be reached.
Definition conn.h:1998
@ BT_SECURITY_ERR_KEY_REJECTED
Distributed Key Rejected.
Definition conn.h:2010
@ BT_SECURITY_ERR_UNSPECIFIED
Pairing failed but the exact reason could not be specified.
Definition conn.h:2013
@ BT_SECURITY_ERR_INVALID_PARAM
Invalid parameters.
Definition conn.h:2007
@ BT_SECURITY_ERR_PAIR_NOT_SUPPORTED
Pairing is not supported.
Definition conn.h:2001
@ BT_SECURITY_ERR_AUTH_FAIL
Authentication failed.
Definition conn.h:1989
@ BT_SECURITY_ERR_PIN_OR_KEY_MISSING
PIN or encryption key is missing.
Definition conn.h:1992
@ BT_SECURITY_ERR_SUCCESS
Security procedure successful.
Definition conn.h:1986
@ BT_SECURITY_ERR_PAIR_NOT_ALLOWED
Pairing is not allowed.
Definition conn.h:2004
@ BT_CONN_LE_CS_SYNC_1M_PHY
LE 1M PHY.
Definition conn.h:795
@ BT_CONN_LE_CS_SYNC_2M_PHY
LE 2M PHY.
Definition conn.h:797
@ BT_CONN_LE_CS_SYNC_2M_2BT_PHY
LE 2M 2BT PHY.
Definition conn.h:799
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B1
Definition conn.h:2049
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B2
Definition conn.h:2056
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B3
Definition conn.h:2054
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B4
Definition conn.h:2055
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A1_B2
Definition conn.h:2053
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A3_B1
Definition conn.h:2051
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A4_B1
Definition conn.h:2052
@ BT_LE_CS_TONE_ANTENNA_CONFIGURATION_A2_B1
Definition conn.h:2050
@ BT_CONN_TYPE_LE
LE Connection Type.
Definition conn.h:525
@ BT_CONN_TYPE_ALL
All Connection Type.
Definition conn.h:533
@ BT_CONN_TYPE_BR
BR/EDR Connection Type.
Definition conn.h:527
@ BT_CONN_TYPE_ISO
ISO Connection Type.
Definition conn.h:531
@ BT_CONN_TYPE_SCO
SCO Connection Type.
Definition conn.h:529
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Initiated by peer.
Definition conn.h:469
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Initiated by local controller.
Definition conn.h:466
@ BT_CONN_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Initiated by local host.
Definition conn.h:463
@ BT_SECURITY_L4
Level 4: Authenticated Secure Connections and 128-bit key.
Definition conn.h:1177
@ BT_SECURITY_L0
Level 0: Only for BR/EDR special cases, like SDP.
Definition conn.h:1169
@ BT_SECURITY_L3
Level 3: Encryption and authentication (MITM).
Definition conn.h:1175
@ BT_SECURITY_FORCE_PAIR
Bit to force new pairing procedure, bit-wise OR with requested security level.
Definition conn.h:1181
@ BT_SECURITY_L1
Level 1: No encryption and no authentication.
Definition conn.h:1171
@ BT_SECURITY_L2
Level 2: Encryption and no authentication (no MITM).
Definition conn.h:1173
@ BT_CONN_LE_CS_CH3C_SHAPE_HAT
Use Hat shape for user-specified channel sequence.
Definition conn.h:813
@ BT_CONN_LE_CS_CH3C_SHAPE_X
Use X shape for user-specified channel sequence.
Definition conn.h:815
@ BT_CONN_LE_CS_PROCEDURES_ENABLED
Definition conn.h:2018
@ BT_CONN_LE_CS_PROCEDURES_DISABLED
Definition conn.h:2017
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_MIDDLE
Middle path loss zone entered.
Definition conn.h:1343
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_LOW
Low path loss zone entered.
Definition conn.h:1341
@ BT_CONN_LE_PATH_LOSS_ZONE_ENTERED_HIGH
High path loss zone entered.
Definition conn.h:1345
@ BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE
Path loss has become unavailable.
Definition conn.h:1347
@ BT_CONN_LE_CS_RTT_AA_ONLY_NOT_SUPP
AA-Only RTT variant is not supported.
Definition conn.h:540
@ BT_CONN_LE_CS_RTT_AA_ONLY_150NS
150ns time-of-flight accuracy.
Definition conn.h:544
@ BT_CONN_LE_CS_RTT_AA_ONLY_10NS
10ns time-of-flight accuracy.
Definition conn.h:542
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_SOUNDING
RTT with 96-bit sounding sequence.
Definition conn.h:781
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_SOUNDING
RTT with 32-bit sounding sequence.
Definition conn.h:779
@ BT_CONN_LE_CS_RTT_TYPE_128_BIT_RANDOM
RTT with 128-bit random sequence.
Definition conn.h:789
@ BT_CONN_LE_CS_RTT_TYPE_AA_ONLY
RTT AA only.
Definition conn.h:777
@ BT_CONN_LE_CS_RTT_TYPE_96_BIT_RANDOM
RTT with 96-bit random sequence.
Definition conn.h:787
@ BT_CONN_LE_CS_RTT_TYPE_32_BIT_RANDOM
RTT with 32-bit random sequence.
Definition conn.h:783
@ BT_CONN_LE_CS_RTT_TYPE_64_BIT_RANDOM
RTT with 64-bit random sequence.
Definition conn.h:785
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_NO_ABORT
Definition hci_types.h:4104
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_HOST
Definition hci_types.h:3008
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_ABORT
Definition hci_types.h:4110
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:4108
#define BT_HCI_OP_LE_CS_RTT_TYPE_128BIT_RAND
Definition hci_types.h:2846
#define BT_HCI_OP_LE_CS_SUB_MODE_1
Definition hci_types.h:2832
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:4105
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_SCHED_CONFLICT
Definition hci_types.h:4113
#define BT_HCI_OP_LE_CS_PROCEDURES_DISABLED
Definition hci_types.h:2817
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_LOCAL_HOST_OR_REMOTE_REQUEST
Definition hci_types.h:4111
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_LOCAL_CONTROLLER
Definition hci_types.h:3009
#define BT_HCI_OP_LE_CS_PROCEDURES_ENABLED
Definition hci_types.h:2818
#define BT_HCI_OP_LE_CS_SUB_MODE_3
Definition hci_types.h:2834
#define BT_HCI_OP_LE_CS_ACI_6
Definition hci_types.h:2861
#define BT_HCI_OP_LE_CS_ACI_1
Definition hci_types.h:2856
#define BT_HCI_OP_LE_CS_MAIN_MODE_3
Definition hci_types.h:2830
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_TOO_FEW_CHANNELS
Definition hci_types.h:4106
#define BT_HCI_OP_LE_CS_MAIN_MODE_2
Definition hci_types.h:2829
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_SOUND
Definition hci_types.h:2842
#define BT_HCI_OP_LE_CS_RTT_TYPE_AA_ONLY
Definition hci_types.h:2840
#define BT_HCI_OP_LE_CS_ACI_3
Definition hci_types.h:2858
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3B
Definition hci_types.h:2881
#define BT_HCI_OP_LE_CS_RTT_TYPE_64BIT_RAND
Definition hci_types.h:2844
#define BT_HCI_OP_LE_CS_CS_SYNC_1M
Definition hci_types.h:2848
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_ABORTED
Definition hci_types.h:4098
#define BT_HCI_OP_LE_CS_ACI_0
Definition hci_types.h:2855
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_SOUND
Definition hci_types.h:2841
#define BT_HCI_OP_LE_CS_RTT_TYPE_96BIT_RAND
Definition hci_types.h:2845
#define BT_HCI_OP_LE_CS_ACI_2
Definition hci_types.h:2857
#define BT_HCI_LE_ZONE_ENTERED_MIDDLE
Definition hci_types.h:3808
#define BT_HCI_OP_LE_CS_RTT_TYPE_32BIT_RAND
Definition hci_types.h:2843
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_UNSPECIFIED
Definition hci_types.h:4114
#define BT_HCI_OP_LE_CS_CS_SYNC_2M_2BT
Definition hci_types.h:2850
#define BT_HCI_LE_CS_SUBEVENT_ABORT_REASON_NO_CS_SYNC_RECEIVED
Definition hci_types.h:4112
#define BT_HCI_OP_LE_CS_ACI_7
Definition hci_types.h:2862
#define BT_HCI_LE_FRAME_SPACE_UPDATE_INITIATOR_PEER
Definition hci_types.h:3010
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_HAT
Definition hci_types.h:2884
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_COMPLETE
Definition hci_types.h:4096
#define BT_HCI_OP_LE_CS_TEST_CH3C_SHAPE_X
Definition hci_types.h:2885
#define BT_HCI_OP_LE_CS_ACI_5
Definition hci_types.h:2860
#define BT_HCI_OP_LE_CS_SUB_MODE_2
Definition hci_types.h:2833
#define BT_HCI_OP_LE_CS_CS_SYNC_2M
Definition hci_types.h:2849
#define BT_HCI_LE_CS_PROCEDURE_ABORT_REASON_CHMAP_INSTANT_PASSED
Definition hci_types.h:4107
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_COMPLETE
Definition hci_types.h:4100
#define BT_HCI_LE_CS_PROCEDURE_DONE_STATUS_PARTIAL
Definition hci_types.h:4097
#define BT_HCI_OP_LE_CS_ACI_4
Definition hci_types.h:2859
#define BT_HCI_OP_LE_CS_TEST_CHSEL_TYPE_3C
Definition hci_types.h:2882
#define BT_HCI_LE_CS_SUBEVENT_DONE_STATUS_ABORTED
Definition hci_types.h:4102
#define BT_HCI_OP_LE_CS_MAIN_MODE_1
Definition hci_types.h:2828
#define BT_HCI_LE_ZONE_ENTERED_HIGH
Definition hci_types.h:3809
#define BT_HCI_LE_ZONE_ENTERED_LOW
Definition hci_types.h:3807
#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:3197
bool allow_role_switch
Definition conn.h:3198
Authenticated pairing callback structure.
Definition conn.h:2798
void(* passkey_entry)(struct bt_conn *conn)
Request the user to enter a passkey.
Definition conn.h:2897
void(* passkey_display)(struct bt_conn *conn, unsigned int passkey)
Display a passkey to the user.
Definition conn.h:2851
void(* passkey_confirm)(struct bt_conn *conn, unsigned int passkey)
Request the user to confirm a passkey.
Definition conn.h:2920
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:2829
void(* pincode_entry)(struct bt_conn *conn, bool highsec)
Request the user to enter a passkey.
Definition conn.h:2994
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:2938
void(* pairing_confirm)(struct bt_conn *conn)
Request confirmation for an incoming pairing.
Definition conn.h:2973
void(* cancel)(struct bt_conn *conn)
Cancel the ongoing user request.
Definition conn.h:2953
Authenticated pairing information callback structure.
Definition conn.h:3023
void(* pairing_failed)(struct bt_conn *conn, enum bt_security_err reason)
notify that pairing process has failed.
Definition conn.h:3040
void(* pairing_complete)(struct bt_conn *conn, bool bonded)
notify that pairing procedure was complete.
Definition conn.h:3033
void(* bond_deleted)(uint8_t id, const bt_addr_le_t *peer)
Notify that bond has been deleted.
Definition conn.h:3051
void(* br_bond_deleted)(const bt_addr_t *peer)
Notify that bond of classic has been deleted.
Definition conn.h:3061
sys_snode_t node
Internally used field for list handling.
Definition conn.h:3065
BR/EDR Connection Info Structure.
Definition conn.h:1140
const bt_addr_t * dst
Destination (Remote) BR/EDR address.
Definition conn.h:1141
BR/EDR Connection Remote Info structure.
Definition conn.h:1233
uint8_t num_pages
Number of pages in the remote feature set.
Definition conn.h:1239
const uint8_t * features
Remote feature set (pages of bitmasks).
Definition conn.h:1236
Connection callback structure.
Definition conn.h:2106
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:2205
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:2289
void(* recycled)(void)
A connection object has been returned to the pool.
Definition conn.h:2166
bool(* le_param_req)(struct bt_conn *conn, struct bt_le_conn_param *param)
LE connection parameter update request.
Definition conn.h:2192
void(* role_changed)(struct bt_conn *conn, uint8_t status)
The role of the connection has changed.
Definition conn.h:2519
void(* disconnected)(struct bt_conn *conn, uint8_t reason)
A connection has been disconnected.
Definition conn.h:2149
void(* conn_rate_changed)(struct bt_conn *conn, uint8_t status, const struct bt_conn_le_conn_rate_changed *params)
LE Connection Rate Changed event.
Definition conn.h:2370
void(* connected)(struct bt_conn *conn, uint8_t err)
A new connection has been established.
Definition conn.h:2131
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:2276
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:2238
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:2217
void(* remote_info_available)(struct bt_conn *conn, struct bt_conn_remote_info *remote_info)
Remote information procedures has completed.
Definition conn.h:2251
Connection Info Structure.
Definition conn.h:1203
uint8_t id
Which local identity the connection was created with.
Definition conn.h:1209
struct bt_conn_le_info le
LE Connection specific Info.
Definition conn.h:1213
enum bt_conn_type type
Connection Type.
Definition conn.h:1205
struct bt_conn_br_info br
BR/EDR Connection specific Info.
Definition conn.h:1215
uint8_t role
Connection Role.
Definition conn.h:1207
struct bt_conn_sco_info sco
SCO Connection specific Info.
Definition conn.h:1217
struct bt_security_info security
Security specific info.
Definition conn.h:1222
enum bt_conn_state state
Connection state.
Definition conn.h:1220
Updated connection rate parameters.
Definition conn.h:385
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:411
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:418
uint16_t peripheral_latency
Peripheral latency.
Definition conn.h:404
uint32_t interval_us
Connection interval.
Definition conn.h:392
uint16_t subrate_factor
Connection subrate factor.
Definition conn.h:397
Connection rate parameters for LE connections.
Definition conn.h:322
uint16_t interval_min_125us
Minimum connection interval.
Definition conn.h:329
uint16_t supervision_timeout_10ms
Connection Supervision timeout.
Definition conn.h:367
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:346
uint16_t interval_max_125us
Maximum connection interval.
Definition conn.h:336
uint16_t max_ce_len_125us
Maximum length of connection event.
Definition conn.h:381
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:360
uint16_t min_ce_len_125us
Minimum length of connection event.
Definition conn.h:374
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:341
uint16_t max_latency
Maximum Peripheral latency.
Definition conn.h:353
uint16_t interval_coded
Scan interval LE Coded PHY (N * 0.625 MS).
Definition conn.h:1773
uint16_t window
Scan window (N * 0.625 ms).
Definition conn.h:1767
uint32_t options
Bit-field of create connection options.
Definition conn.h:1747
uint16_t timeout
Connection initiation timeout (N * 10 MS).
Definition conn.h:1788
uint16_t interval
Scan interval (N * 0.625 ms).
Definition conn.h:1757
uint16_t window_coded
Scan window LE Coded PHY (N * 0.625 MS).
Definition conn.h:1779
const bt_addr_le_t * peer
Remote address.
Definition conn.h:1869
uint8_t subevent
The subevent where the connection will be initiated.
Definition conn.h:1872
Remote channel sounding capabilities for LE connections supporting CS.
Definition conn.h:568
uint16_t t_ip1_times_supported
Optional T_IP1 time durations during CS steps.
Definition conn.h:641
bool phase_based_nadm_random_supported
Phase-based normalized attack detector metric when a CS_SYNC with random sequence is received.
Definition conn.h:618
uint16_t t_fcs_times_supported
Optional T_FCS time durations during CS steps.
Definition conn.h:665
uint16_t t_ip2_ipt_times_supported
Supported T_IP2_IPT time durations during CS steps.
Definition conn.h:693
bool cs_without_fae_supported
Subfeature: CS with no Frequency Actuation Error.
Definition conn.h:624
uint8_t rtt_random_payload_n
Number of CS steps needed to achieve the accuracy requirements for RTT Random Payload.
Definition conn.h:610
bool cs_sync_2m_phy_supported
CS_SYNC LE 2M PHY.
Definition conn.h:620
enum bt_conn_le_cs_capability_rtt_aa_only rtt_aa_only_precision
RTT AA-Only.
Definition conn.h:588
uint8_t num_antennas_supported
Number of antennas.
Definition conn.h:578
uint8_t t_sw_time
Time in microseconds for the antenna switch period of the CS tones.
Definition conn.h:673
bool cs_sync_2m_2bt_phy_supported
CS_SYNC LE 2M 2BT PHY.
Definition conn.h:622
bool initiator_supported
Initiator role.
Definition conn.h:582
bool reflector_supported
Reflector role.
Definition conn.h:584
uint16_t t_pm_times_supported
Optional T_PM time durations during CS steps.
Definition conn.h:671
uint8_t num_config_supported
Number of CS configurations.
Definition conn.h:570
uint8_t rtt_sounding_n
Number of CS steps needed to achieve the accuracy requirements for RTT Sounding.
Definition conn.h:604
bool phase_based_nadm_sounding_supported
Phase-based normalized attack detector metric when a CS_SYNC with sounding sequence is received.
Definition conn.h:614
uint8_t t_sw_ipt_time_supported
Supported time in microseconds for the antenna switch period of the CS tones during IPT.
Definition conn.h:700
bool mode_3_supported
Mode-3.
Definition conn.h:586
bool chsel_alg_3c_supported
Subfeature: Channel Selection Algorithm #3c.
Definition conn.h:626
enum bt_conn_le_cs_capability_rtt_random_payload rtt_random_payload_precision
RTT Random Payload.
Definition conn.h:592
uint8_t rtt_aa_only_n
Number of CS steps needed to achieve the accuracy requirements for RTT AA Only.
Definition conn.h:598
uint8_t max_antenna_paths_supported
Maximum number of antenna paths.
Definition conn.h:580
enum bt_conn_le_cs_capability_rtt_sounding rtt_sounding_precision
RTT Sounding.
Definition conn.h:590
bool pbr_from_rtt_sounding_seq_supported
Subfeature: Phase-based Ranging from RTT sounding sequence.
Definition conn.h:628
uint8_t tx_snr_capability
Supported SNR levels used in RTT packets.
Definition conn.h:682
bool cs_ipt_reflector
Subfeature: IPT in the CS reflector.
Definition conn.h:630
uint16_t max_consecutive_procedures_supported
Maximum number of consecutive CS procedures.
Definition conn.h:576
uint16_t t_ip2_times_supported
Optional T_IP2 time durations during CS steps.
Definition conn.h:652
Channel sounding configuration.
Definition conn.h:819
enum bt_conn_le_cs_rtt_type rtt_type
RTT type.
Definition conn.h:838
enum bt_conn_le_cs_sync_phy cs_sync_phy
CS Sync PHY.
Definition conn.h:840
uint8_t t_fcs_time_us
Time in microseconds for frequency changes.
Definition conn.h:861
uint8_t min_main_mode_steps
Minimum number of CS main mode steps to be executed before a submode step is executed.
Definition conn.h:825
uint8_t main_mode_repetition
Number of main mode steps taken from the end of the last CS subevent to be repeated at the beginning ...
Definition conn.h:832
uint8_t channel_map[10]
Channel map used for CS procedure Channels n = 0, 1, 23, 24, 25, 77, and 78 are not allowed and shall...
Definition conn.h:869
enum bt_conn_le_cs_chsel_type channel_selection_type
Channel selection type.
Definition conn.h:846
uint8_t t_ip2_time_us
Interlude time in microseconds between the CS tones.
Definition conn.h:859
uint8_t mode_0_steps
Number of CS mode-0 steps to be included at the beginning of each CS subevent.
Definition conn.h:834
uint8_t channel_map_repetition
The number of times the Channel_Map field will be cycled through for non-mode-0 steps within a CS pro...
Definition conn.h:844
enum bt_conn_le_cs_ch3c_shape ch3c_shape
User-specified channel sequence shape.
Definition conn.h:848
uint8_t t_ip1_time_us
Interlude time in microseconds between the RTT packets.
Definition conn.h:857
uint8_t id
CS configuration ID.
Definition conn.h:821
enum bt_conn_le_cs_mode mode
CS main and sub mode.
Definition conn.h:823
uint8_t cs_enhancements_1
CS enhancements 1 Bit 0 - IPT is enabled in the CS reflector.
Definition conn.h:855
enum bt_conn_le_cs_role role
CS role.
Definition conn.h:836
uint8_t t_pm_time_us
Time in microseconds for the phase measurement period of the CS tones.
Definition conn.h:863
uint8_t ch3c_jump
Number of channels skipped in each rising and falling sequence.
Definition conn.h:850
uint8_t max_main_mode_steps
Maximum number of CS main mode steps to be executed before a submode step is executed.
Definition conn.h:827
Remote FAE Table for LE connections supporting CS.
Definition conn.h:704
int8_t * remote_fae_table
Definition conn.h:705
uint8_t config_id
Definition conn.h:2061
enum bt_conn_le_cs_tone_antenna_config_selection tone_antenna_config_selection
Definition conn.h:2067
uint8_t subevents_per_event
Definition conn.h:2076
uint16_t event_interval
Definition conn.h:2084
uint16_t subevent_interval
Definition conn.h:2081
uint16_t procedure_interval
Definition conn.h:2087
uint16_t procedure_count
Definition conn.h:2090
enum bt_conn_le_cs_procedure_enable_state state
Definition conn.h:2064
uint16_t max_procedure_len
Definition conn.h:2093
uint32_t subevent_len
Definition conn.h:2073
int8_t selected_tx_power
Definition conn.h:2070
Subevent data for LE connections supporting CS.
Definition conn.h:910
uint16_t procedure_counter
CS procedure count associated with these results.
Definition conn.h:931
struct bt_conn_le_cs_subevent_result::@320060245020174255122267056204140154173252004243 header
uint8_t num_antenna_paths
Number of antenna paths used during the phase measurement stage.
Definition conn.h:981
uint8_t num_steps_reported
Number of CS steps in the subevent.
Definition conn.h:984
enum bt_conn_le_cs_subevent_done_status subevent_done_status
Subevent status.
Definition conn.h:964
struct net_buf_simple * step_data_buf
Pointer to buffer containing step data.
Definition conn.h:994
uint16_t start_acl_conn_event
Starting ACL connection event counter.
Definition conn.h:925
enum bt_conn_le_cs_procedure_abort_reason procedure_abort_reason
Abort reason.
Definition conn.h:971
uint16_t frequency_compensation
Frequency compensation value in units of 0.01 ppm.
Definition conn.h:940
uint8_t abort_step
Step number, on which the subevent was aborted if subevent_done_status is BT_CONN_LE_CS_SUBEVENT_COMP...
Definition conn.h:989
uint8_t config_id
CS configuration identifier.
Definition conn.h:919
int8_t reference_power_level
Reference power level in dBm.
Definition conn.h:948
enum bt_conn_le_cs_procedure_done_status procedure_done_status
Procedure status.
Definition conn.h:950
enum bt_conn_le_cs_subevent_abort_reason subevent_abort_reason
Abort reason.
Definition conn.h:978
Connection data length information for LE connections.
Definition conn.h:157
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:161
uint16_t rx_max_len
Maximum Link Layer reception payload size in bytes.
Definition conn.h:163
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:159
uint16_t rx_max_time
Maximum Link Layer reception payload time in us.
Definition conn.h:165
Connection data length parameters for LE connections.
Definition conn.h:169
uint16_t tx_max_len
Maximum Link Layer transmission payload size in bytes.
Definition conn.h:171
uint16_t tx_max_time
Maximum Link Layer transmission payload time in us.
Definition conn.h:173
Frame space update params.
Definition conn.h:474
uint16_t spacing_types
Spacing types mask of the spacing types to be updated.
Definition conn.h:483
uint8_t phys
Phy mask of the PHYs to be updated.
Definition conn.h:478
uint16_t frame_space_min
Minimum frame space in microseconds.
Definition conn.h:490
uint16_t frame_space_max
Maximum frame space in microseconds.
Definition conn.h:497
Frame space updated callback params.
Definition conn.h:501
uint8_t status
HCI Status from LE Frame Space Update Complete event.
Definition conn.h:506
uint8_t phys
Phy mask of the PHYs updated.
Definition conn.h:514
uint16_t spacing_types
Spacing types mask of the spacing types updated.
Definition conn.h:519
uint16_t frame_space
Updated frame space in microseconds.
Definition conn.h:510
enum bt_conn_le_frame_space_update_initiator initiator
Initiator of the frame space update.
Definition conn.h:508
LE Connection Info Structure.
Definition conn.h:1073
const bt_addr_le_t * dst
Destination (Remote) Identity Address or remote Resolvable Private Address (RPA) before identity has ...
Definition conn.h:1079
const struct bt_conn_le_phy_info * phy
Definition conn.h:1104
const bt_addr_le_t * remote
Remote device address used during connection setup.
Definition conn.h:1083
const bt_addr_le_t * local
Local device address used during connection setup.
Definition conn.h:1081
uint32_t interval_us
Connection interval in microseconds.
Definition conn.h:1085
const bt_addr_le_t * src
Source (Local) Identity Address.
Definition conn.h:1075
uint16_t interval
Connection interval in units of 1.25 ms.
Definition conn.h:1092
uint16_t latency
Connection peripheral latency.
Definition conn.h:1100
const struct bt_conn_le_data_len_info * data_len
Definition conn.h:1109
uint16_t timeout
Connection supervision timeout.
Definition conn.h:1101
Minimum supported connection interval group.
Definition conn.h:274
uint16_t max_125us
Upper bound of group interval range.
Definition conn.h:288
uint16_t min_125us
Lower bound of group interval range.
Definition conn.h:281
uint16_t stride_125us
Increment between consecutive supported intervals.
Definition conn.h:295
Minimum supported connection interval information.
Definition conn.h:299
uint16_t min_supported_conn_interval_us
Minimum supported connection interval.
Definition conn.h:306
uint8_t num_groups
Number of interval groups.
Definition conn.h:313
struct bt_conn_le_min_conn_interval_group groups[41]
Array of supported connection interval groups.
Definition conn.h:318
LE Path Loss Monitoring Parameters Structure as defined in Core Spec.
Definition conn.h:1367
uint8_t high_threshold
High threshold for the path loss (dB).
Definition conn.h:1369
uint8_t low_threshold
Low threshold for the path loss (dB).
Definition conn.h:1373
uint16_t min_time_spent
Minimum time in number of connection events to be observed once the path loss crosses the threshold b...
Definition conn.h:1379
uint8_t high_hysteresis
Hysteresis value for the high threshold (dB).
Definition conn.h:1371
uint8_t low_hysteresis
Hysteresis value for the low threshold (dB).
Definition conn.h:1375
LE Path Loss Monitoring Threshold Change Report Structure.
Definition conn.h:1355
enum bt_conn_le_path_loss_zone zone
Path Loss zone as documented in Core Spec.
Definition conn.h:1358
uint8_t path_loss
Current path loss (dB).
Definition conn.h:1361
Connection PHY information for LE connections.
Definition conn.h:90
uint8_t rx_phy
Connection transmit PHY.
Definition conn.h:92
uint8_t tx_phy
Definition conn.h:91
Preferred PHY parameters for LE connections.
Definition conn.h:108
uint16_t options
Connection PHY options.
Definition conn.h:109
uint8_t pref_rx_phy
Bitmask of preferred receive PHYs.
Definition conn.h:111
uint8_t pref_tx_phy
Bitmask of preferred transmit PHYs.
Definition conn.h:110
Read all remote features complete callback params.
Definition conn.h:422
uint8_t status
HCI Status from LE Read All Remote Features Complete event.
Definition conn.h:427
uint8_t max_remote_page
Number of pages supported by remote device.
Definition conn.h:429
const uint8_t * features
Pointer to array of size 248, with feature bits of remote supported features.
Definition conn.h:439
uint8_t max_valid_page
Number of pages fetched from remote device.
Definition conn.h:431
LE Connection Remote Info Structure.
Definition conn.h:1226
const uint8_t * features
Remote LE feature set (bitmask).
Definition conn.h:1229
Updated subrating connection parameters for LE connections.
Definition conn.h:239
uint16_t factor
Connection subrate factor.
Definition conn.h:246
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:251
uint16_t peripheral_latency
Peripheral latency in units of subrated connection intervals.
Definition conn.h:253
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:255
uint8_t status
HCI Status from LE Subrate Changed event.
Definition conn.h:244
Connection subrating parameters for LE connections.
Definition conn.h:208
uint16_t max_latency
Maximum Peripheral latency in units of subrated connection intervals.
Definition conn.h:214
uint16_t subrate_max
Maximum subrate factor.
Definition conn.h:212
uint16_t continuation_number
Minimum number of underlying connection events to remain active after a packet containing a Link Laye...
Definition conn.h:219
uint16_t supervision_timeout
Connection Supervision timeout (N * 10 ms).
Definition conn.h:224
uint16_t subrate_min
Minimum subrate factor.
Definition conn.h:210
Subrating information for LE connections.
Definition conn.h:228
uint16_t continuation_number
Number of underlying connection events to remain active after a packet containing a Link Layer PDU wi...
Definition conn.h:235
uint16_t factor
Connection subrate factor.
Definition conn.h:230
LE Transmit Power Reporting Structure.
Definition conn.h:1297
enum bt_conn_le_tx_power_phy phy
Phy of Transmit power reporting.
Definition conn.h:1305
int8_t delta
Change in transmit power level.
Definition conn.h:1328
uint8_t reason
Reason for Transmit power reporting, as documented in Core Spec.
Definition conn.h:1302
int8_t tx_power_level
Transmit power level.
Definition conn.h:1315
uint8_t tx_power_level_flag
Bit 0: Transmit power level is at minimum level.
Definition conn.h:1320
LE Transmit Power Level Structure.
Definition conn.h:1283
int8_t max_level
Output: maximum transmit power level.
Definition conn.h:1292
int8_t current_level
Output: current transmit power level.
Definition conn.h:1289
uint8_t phy
Input: 1M, 2M, Coded S2 or Coded S8.
Definition conn.h:1286
Info Structure for OOB pairing.
Definition conn.h:2727
enum bt_conn_oob_info::@037057234300046321114030012274214022016020174371 type
Type of OOB pairing method.
struct bt_conn_oob_info::@130100253371055064164065265224242172250032310014::@137243212311252224135110143302345157373056137006 lesc
LE Secure Connections OOB pairing parameters.
@ BT_CONN_OOB_NO_DATA
No OOB data requested.
Definition conn.h:2752
@ BT_CONN_OOB_LOCAL_ONLY
Local OOB data requested.
Definition conn.h:2743
@ BT_CONN_OOB_REMOTE_ONLY
Remote OOB data requested.
Definition conn.h:2746
@ BT_CONN_OOB_BOTH_PEERS
Both local and remote OOB data requested.
Definition conn.h:2749
enum bt_conn_oob_info::@130100253371055064164065265224242172250032310014::@137243212311252224135110143302345157373056137006::@216340163167243036111326111056201242022231353223 oob_config
OOB data configuration.
@ BT_CONN_OOB_LE_LEGACY
LE legacy pairing.
Definition conn.h:2731
@ BT_CONN_OOB_LE_SC
LE SC pairing.
Definition conn.h:2734
Pairing request and pairing response info structure.
Definition conn.h:2765
uint8_t resp_key_dist
Responder Key Distribution/Generation, Core Spec.
Definition conn.h:2786
uint8_t io_capability
IO Capability, Core Spec.
Definition conn.h:2767
uint8_t init_key_dist
Initiator Key Distribution/Generation, Core Spec.
Definition conn.h:2781
uint8_t max_enc_key_size
Maximum Encryption Key Size, Core Spec.
Definition conn.h:2776
uint8_t auth_req
AuthReq, Core Spec.
Definition conn.h:2773
uint8_t oob_data_flag
OOB data flag, Core Spec.
Definition conn.h:2770
Connection Remote Info Structure.
Definition conn.h:1247
uint8_t version
Remote Link Layer version.
Definition conn.h:1252
uint16_t subversion
Per-manufacturer unique revision.
Definition conn.h:1258
uint16_t manufacturer
Remote manufacturer identifier.
Definition conn.h:1255
uint8_t type
Connection Type.
Definition conn.h:1249
struct bt_conn_br_remote_info br
BR/EDR connection remote info.
Definition conn.h:1265
struct bt_conn_le_remote_info le
LE connection remote info.
Definition conn.h:1262
SCO Connection Info Structure.
Definition conn.h:1145
uint8_t link_type
SCO link type.
Definition conn.h:1146
uint8_t air_mode
SCO air mode (codec type).
Definition conn.h:1147
Opaque type representing a connection to a remote device.
Definition direction.h:168
Connection parameters for LE connections.
Definition conn.h:46
uint16_t latency
Definition conn.h:49
uint16_t interval_max
Definition conn.h:48
uint16_t timeout
Definition conn.h:50
uint16_t interval_min
Definition conn.h:47
Opaque type representing an advertiser.
LE Secure Connections pairing Out of Band data.
Definition bluetooth.h:2781
Security Info Structure.
Definition conn.h:1193
uint8_t enc_key_size
Encryption Key Size.
Definition conn.h:1197
bt_security_t level
Security Level.
Definition conn.h:1195
enum bt_security_flag flags
Flags.
Definition conn.h:1199
Simple network buffer representation.
Definition net_buf.h:89