| /Zephyr-4.1.0/include/zephyr/bluetooth/audio/ |
| D | mcc.h | 50 typedef void (*bt_mcc_discover_mcs_cb)(struct bt_conn *conn, int err); 61 typedef void (*bt_mcc_read_player_name_cb)(struct bt_conn *conn, int err, const char *name); 72 typedef void (*bt_mcc_read_icon_obj_id_cb)(struct bt_conn *conn, int err, uint64_t icon_id); 83 typedef void (*bt_mcc_read_icon_url_cb)(struct bt_conn *conn, int err, const char *icon_url); 96 typedef void (*bt_mcc_track_changed_ntf_cb)(struct bt_conn *conn, int err); 108 typedef void (*bt_mcc_read_track_title_cb)(struct bt_conn *conn, int err, const char *title); 119 typedef void (*bt_mcc_read_track_duration_cb)(struct bt_conn *conn, int err, int32_t dur); 130 typedef void (*bt_mcc_read_track_position_cb)(struct bt_conn *conn, int err, int32_t pos); 141 typedef void (*bt_mcc_set_track_position_cb)(struct bt_conn *conn, int err, int32_t pos); 152 typedef void (*bt_mcc_read_playback_speed_cb)(struct bt_conn *conn, int err, int8_t speed); [all …]
|
| D | tbs.h | 212 typedef bool (*bt_tbs_originate_call_cb)(struct bt_conn *conn, 225 typedef void (*bt_tbs_terminate_call_cb)(struct bt_conn *conn, 236 typedef void (*bt_tbs_join_calls_cb)(struct bt_conn *conn, 246 typedef void (*bt_tbs_call_change_cb)(struct bt_conn *conn, 256 typedef bool (*bt_tbs_authorize_cb)(struct bt_conn *conn); 589 typedef void (*bt_tbs_client_discover_cb)(struct bt_conn *conn, int err, 600 typedef void (*bt_tbs_client_write_value_cb)(struct bt_conn *conn, int err, 613 typedef void (*bt_tbs_client_cp_cb)(struct bt_conn *conn, int err, 626 typedef void (*bt_tbs_client_read_string_cb)(struct bt_conn *conn, int err, 639 typedef void (*bt_tbs_client_read_value_cb)(struct bt_conn *conn, int err, [all …]
|
| /Zephyr-4.1.0/include/zephyr/bluetooth/classic/ |
| D | hfp_hf.h | 57 void (*connected)(struct bt_conn *conn); 66 void (*disconnected)(struct bt_conn *conn); 75 void (*sco_connected)(struct bt_conn *conn, struct bt_conn *sco_conn); 84 void (*sco_disconnected)(struct bt_conn *sco_conn, uint8_t reason); 92 void (*service)(struct bt_conn *conn, uint32_t value); 100 void (*call)(struct bt_conn *conn, uint32_t value); 108 void (*call_setup)(struct bt_conn *conn, uint32_t value); 116 void (*call_held)(struct bt_conn *conn, uint32_t value); 124 void (*signal)(struct bt_conn *conn, uint32_t value); 132 void (*roam)(struct bt_conn *conn, uint32_t value); [all …]
|
| /Zephyr-4.1.0/subsys/bluetooth/host/ |
| D | conn_internal.h | 149 struct bt_conn *acl; 162 struct bt_conn *acl; 189 typedef void (*bt_conn_tx_cb_t)(struct bt_conn *conn, void *user_data, int err); 214 struct bt_conn { struct 290 struct net_buf * (*tx_data_pull)(struct bt_conn *conn, argument 295 void (*get_and_clear_cb)(struct bt_conn *conn, struct net_buf *buf, argument 299 bool (*has_data)(struct bt_conn *conn); argument 364 void bt_conn_tx_notify(struct bt_conn *conn, bool wait_for_completion); 366 void bt_conn_reset_rx_state(struct bt_conn *conn); 369 void bt_conn_recv(struct bt_conn *conn, struct net_buf *buf, uint8_t flags); [all …]
|
| D | gatt_internal.h | 33 void bt_gatt_connected(struct bt_conn *conn); 34 void bt_gatt_att_max_mtu_changed(struct bt_conn *conn, uint16_t tx, uint16_t rx); 35 void bt_gatt_encrypt_change(struct bt_conn *conn); 36 void bt_gatt_disconnected(struct bt_conn *conn); 38 bool bt_gatt_change_aware(struct bt_conn *conn, bool req); 45 void bt_gatt_notification(struct bt_conn *conn, uint16_t handle, 48 void bt_gatt_mult_notification(struct bt_conn *conn, const void *data, 51 static inline void bt_gatt_notification(struct bt_conn *conn, uint16_t handle, in bt_gatt_notification() 56 static inline void bt_gatt_mult_notification(struct bt_conn *conn, in bt_gatt_mult_notification() 65 uint8_t bt_gatt_check_perm(struct bt_conn *conn, const struct bt_gatt_attr *attr,
|
| D | smp.h | 135 int bt_smp_start_security(struct bt_conn *conn); 136 bool bt_smp_request_ltk(struct bt_conn *conn, uint64_t rand, uint16_t ediv, 139 void bt_smp_update_keys(struct bt_conn *conn); 141 int bt_smp_br_send_pairing_req(struct bt_conn *conn); 145 int bt_smp_auth_cb_overlay(struct bt_conn *conn, const struct bt_conn_auth_cb *cb); 146 int bt_smp_auth_keypress_notify(struct bt_conn *conn, 148 int bt_smp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey); 149 int bt_smp_auth_passkey_confirm(struct bt_conn *conn); 150 int bt_smp_auth_pairing_confirm(struct bt_conn *conn); 151 int bt_smp_auth_cancel(struct bt_conn *conn); [all …]
|
| /Zephyr-4.1.0/tests/bluetooth/host/cs/mocks/ |
| D | conn.c | 11 DEFINE_FAKE_VOID_FUNC(bt_conn_unref, struct bt_conn *); 12 DEFINE_FAKE_VALUE_FUNC(struct bt_conn *, bt_conn_lookup_handle, uint16_t, enum bt_conn_type); 13 DEFINE_FAKE_VOID_FUNC(notify_remote_cs_capabilities, struct bt_conn *, 15 DEFINE_FAKE_VOID_FUNC(notify_remote_cs_fae_table, struct bt_conn *, struct bt_conn_le_cs_fae_table); 16 DEFINE_FAKE_VOID_FUNC(notify_cs_config_created, struct bt_conn *, struct bt_conn_le_cs_config *); 17 DEFINE_FAKE_VOID_FUNC(notify_cs_config_removed, struct bt_conn *, uint8_t); 18 DEFINE_FAKE_VOID_FUNC(notify_cs_subevent_result, struct bt_conn *, 20 DEFINE_FAKE_VOID_FUNC(notify_cs_security_enable_available, struct bt_conn *); 21 DEFINE_FAKE_VOID_FUNC(notify_cs_procedure_enable_available, struct bt_conn *,
|
| D | conn.h | 25 DECLARE_FAKE_VOID_FUNC(bt_conn_unref, struct bt_conn *); 26 DECLARE_FAKE_VALUE_FUNC(struct bt_conn *, bt_conn_lookup_handle, uint16_t, enum bt_conn_type); 27 DECLARE_FAKE_VOID_FUNC(notify_remote_cs_capabilities, struct bt_conn *, 29 DECLARE_FAKE_VOID_FUNC(notify_remote_cs_fae_table, struct bt_conn *, 31 DECLARE_FAKE_VOID_FUNC(notify_cs_config_created, struct bt_conn *, struct bt_conn_le_cs_config *); 32 DECLARE_FAKE_VOID_FUNC(notify_cs_config_removed, struct bt_conn *, uint8_t); 33 DECLARE_FAKE_VOID_FUNC(notify_cs_subevent_result, struct bt_conn *, 35 DECLARE_FAKE_VOID_FUNC(notify_cs_security_enable_available, struct bt_conn *); 36 DECLARE_FAKE_VOID_FUNC(notify_cs_procedure_enable_available, struct bt_conn *,
|
| /Zephyr-4.1.0/tests/bluetooth/audio/cap_commander/include/ |
| D | cap_commander.h | 20 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_discovery_complete_cb, struct bt_conn *, int, 23 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_volume_changed_cb, struct bt_conn *, int); 24 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_volume_mute_changed_cb, struct bt_conn *, int); 25 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_volume_offset_changed_cb, struct bt_conn *, int); 26 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_microphone_mute_changed_cb, struct bt_conn *, int); 27 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_microphone_gain_changed_cb, struct bt_conn *, int); 28 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_broadcast_reception_start_cb, struct bt_conn *, int); 29 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_broadcast_reception_stop_cb, struct bt_conn *, int); 30 DECLARE_FAKE_VOID_FUNC(mock_cap_commander_distribute_broadcast_code_cb, struct bt_conn *, int);
|
| /Zephyr-4.1.0/tests/bluetooth/audio/ascs/include/ |
| D | test_common.h | 44 void test_conn_init(struct bt_conn *conn); 50 void test_ase_control_client_config_codec(struct bt_conn *conn, uint8_t ase_id, 52 void test_ase_control_client_config_qos(struct bt_conn *conn, uint8_t ase_id); 53 void test_ase_control_client_enable(struct bt_conn *conn, uint8_t ase_id); 54 void test_ase_control_client_disable(struct bt_conn *conn, uint8_t ase_id); 55 void test_ase_control_client_release(struct bt_conn *conn, uint8_t ase_id); 56 void test_ase_control_client_update_metadata(struct bt_conn *conn, uint8_t ase_id); 57 void test_ase_control_client_receiver_start_ready(struct bt_conn *conn, uint8_t ase_id); 58 void test_ase_control_client_receiver_stop_ready(struct bt_conn *conn, uint8_t ase_id); 61 void test_preamble_state_codec_configured(struct bt_conn *conn, uint8_t ase_id, [all …]
|
| /Zephyr-4.1.0/subsys/bluetooth/host/classic/ |
| D | l2cap_br_interface.h | 13 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan); 26 void bt_l2cap_br_connected(struct bt_conn *conn); 29 void bt_l2cap_br_disconnected(struct bt_conn *conn); 32 struct bt_l2cap_chan *bt_l2cap_br_lookup_rx_cid(struct bt_conn *conn, 39 int bt_l2cap_br_chan_connect(struct bt_conn *conn, struct bt_l2cap_chan *chan, 50 int bt_l2cap_br_send_cb(struct bt_conn *conn, uint16_t cid, struct net_buf *buf, 57 void l2cap_br_encrypt_change(struct bt_conn *conn, uint8_t hci_status); 60 void bt_l2cap_br_recv(struct bt_conn *conn, struct net_buf *buf); 63 struct net_buf *l2cap_br_data_pull(struct bt_conn *conn, 68 struct bt_l2cap_chan *bt_l2cap_br_lookup_tx_cid(struct bt_conn *conn, [all …]
|
| D | ssp.h | 8 int bt_ssp_start_security(struct bt_conn *conn); 10 int bt_ssp_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey); 11 int bt_ssp_auth_passkey_confirm(struct bt_conn *conn); 12 int bt_ssp_auth_cancel(struct bt_conn *conn); 13 int bt_ssp_auth_pairing_confirm(struct bt_conn *conn);
|
| /Zephyr-4.1.0/include/zephyr/bluetooth/ |
| D | conn.h | 36 struct bt_conn; 678 struct bt_conn *bt_conn_ref(struct bt_conn *conn); 686 void bt_conn_unref(struct bt_conn *conn); 705 void (*func)(struct bt_conn *conn, void *data), 720 struct bt_conn *bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer); 728 const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn); 740 uint8_t bt_conn_index(const struct bt_conn *conn); 1043 int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info); 1054 bool bt_conn_is_type(const struct bt_conn *conn, enum bt_conn_type type); 1072 int bt_conn_get_remote_info(const struct bt_conn *conn, struct bt_conn_remote_info *remote_info); [all …]
|
| /Zephyr-4.1.0/tests/bsim/bluetooth/host/gatt/settings/src/ |
| D | utils.h | 11 void disconnect(struct bt_conn *conn); 13 struct bt_conn *get_conn(void); 14 struct bt_conn *connect_as_central(void); 15 struct bt_conn *connect_as_peripheral(void); 17 void set_security(struct bt_conn *conn, bt_security_t sec); 19 void bond(struct bt_conn *conn);
|
| D | utils.c | 14 static struct bt_conn *default_conn; 32 static void disconnected(struct bt_conn *conn, uint8_t reason) in disconnected() 43 static void connected(struct bt_conn *conn, uint8_t err) in connected() 67 void security_changed(struct bt_conn *conn, bt_security_t level, in security_changed() 130 void disconnect(struct bt_conn *conn) in disconnect() 141 struct bt_conn *get_conn(void) in get_conn() 148 static void pairing_failed(struct bt_conn *conn, enum bt_security_err reason) in pairing_failed() 153 static void pairing_complete(struct bt_conn *conn, bool bonded) in pairing_complete() 166 void set_security(struct bt_conn *conn, bt_security_t sec) in set_security() 184 void bond(struct bt_conn *conn) in bond() [all …]
|
| /Zephyr-4.1.0/tests/bluetooth/audio/cap_commander/uut/ |
| D | cap_commander.c | 26 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_discovery_complete_cb, struct bt_conn *, int, 30 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_volume_changed_cb, struct bt_conn *, int); 31 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_volume_mute_changed_cb, struct bt_conn *, int); 32 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_volume_offset_changed_cb, struct bt_conn *, int); 33 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_microphone_mute_changed_cb, struct bt_conn *, int); 34 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_microphone_gain_changed_cb, struct bt_conn *, int); 35 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_broadcast_reception_start_cb, struct bt_conn *, int); 36 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_broadcast_reception_stop_cb, struct bt_conn *, int); 37 DEFINE_FAKE_VOID_FUNC(mock_cap_commander_distribute_broadcast_code_cb, struct bt_conn *, int);
|
| /Zephyr-4.1.0/tests/bsim/bluetooth/host/security/id_addr_update/common/ |
| D | bs_bt_utils.h | 26 void clear_conn(struct bt_conn *conn); 27 void wait_connected(struct bt_conn **conn); 29 void disconnect(struct bt_conn *conn); 33 void set_security(struct bt_conn *conn, bt_security_t sec); 36 void bas_subscribe(struct bt_conn *conn); 38 void bas_notify(struct bt_conn *conn);
|
| /Zephyr-4.1.0/tests/bluetooth/common/testlib/include/testlib/ |
| D | conn.h | 43 int bt_testlib_connect(const bt_addr_le_t *peer, struct bt_conn **connp); 61 int bt_testlib_disconnect(struct bt_conn **connp, uint8_t reason); 74 int bt_testlib_wait_connected(struct bt_conn *conn); 81 int bt_testlib_wait_disconnected(struct bt_conn *conn); 91 void bt_testlib_conn_unref(struct bt_conn **connp); 124 struct bt_conn *bt_testlib_conn_unindex(enum bt_conn_type conn_type, uint8_t conn_index);
|
| /Zephyr-4.1.0/tests/bluetooth/audio/mocks/src/ |
| D | conn.c | 21 DEFINE_FAKE_VALUE_FUNC(const bt_addr_le_t *, bt_conn_get_dst, const struct bt_conn *); 26 uint8_t bt_conn_index(const struct bt_conn *conn) in bt_conn_index() 31 int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info) in bt_conn_get_info() 38 struct bt_conn *bt_conn_ref(struct bt_conn *conn) in bt_conn_ref() 43 void bt_conn_unref(struct bt_conn *conn) in bt_conn_unref() 62 void mock_bt_conn_connected(struct bt_conn *conn, uint8_t err) in mock_bt_conn_connected() 71 void mock_bt_conn_disconnected(struct bt_conn *conn, uint8_t err) in mock_bt_conn_disconnected()
|
| /Zephyr-4.1.0/subsys/bluetooth/mesh/ |
| D | pb_gatt.h | 9 int bt_mesh_pb_gatt_start(struct bt_conn *conn); 10 int bt_mesh_pb_gatt_close(struct bt_conn *conn); 11 int bt_mesh_pb_gatt_recv(struct bt_conn *conn, struct net_buf_simple *buf); 13 int bt_mesh_pb_gatt_cli_open(struct bt_conn *conn); 14 int bt_mesh_pb_gatt_cli_start(struct bt_conn *conn);
|
| /Zephyr-4.1.0/samples/bluetooth/handsfree/src/ |
| D | main.c | 22 static void connected(struct bt_conn *conn) in connected() 27 static void disconnected(struct bt_conn *conn) in disconnected() 32 static void service(struct bt_conn *conn, uint32_t value) in service() 37 static void call(struct bt_conn *conn, uint32_t value) in call() 42 static void call_setup(struct bt_conn *conn, uint32_t value) in call_setup() 47 static void call_held(struct bt_conn *conn, uint32_t value) in call_held() 52 static void signal(struct bt_conn *conn, uint32_t value) in signal() 57 static void roam(struct bt_conn *conn, uint32_t value) in roam() 62 static void battery(struct bt_conn *conn, uint32_t value) in battery() 67 static void ring_cb(struct bt_conn *conn) in ring_cb()
|
| /Zephyr-4.1.0/tests/bsim/bluetooth/host/security/id_addr_update/central/src/ |
| D | utils.h | 6 void clear_conn(struct bt_conn *conn); 7 void wait_connected(struct bt_conn **conn); 9 void disconnect(struct bt_conn *conn); 12 void set_security(struct bt_conn *conn, bt_security_t sec); 15 void bas_subscribe(struct bt_conn *conn);
|
| /Zephyr-4.1.0/tests/bsim/bluetooth/host/security/id_addr_update/peripheral/src/ |
| D | utils.h | 6 void clear_conn(struct bt_conn *conn); 7 void wait_connected(struct bt_conn **conn); 9 void disconnect(struct bt_conn *conn); 12 void set_security(struct bt_conn *conn, bt_security_t sec); 15 void bas_notify(struct bt_conn *conn);
|
| /Zephyr-4.1.0/tests/bluetooth/host/conn/mocks/ |
| D | l2cap_internal.c | 12 DEFINE_FAKE_VOID_FUNC(bt_l2cap_recv, struct bt_conn *, struct net_buf *, bool); 13 DEFINE_FAKE_VOID_FUNC(bt_l2cap_connected, struct bt_conn *); 14 DEFINE_FAKE_VALUE_FUNC(int, bt_l2cap_update_conn_param, struct bt_conn *, 16 DEFINE_FAKE_VOID_FUNC(bt_l2cap_disconnected, struct bt_conn *); 17 DEFINE_FAKE_VALUE_FUNC(struct net_buf *, l2cap_data_pull, struct bt_conn *, size_t, size_t *);
|
| D | l2cap_internal.h | 21 DECLARE_FAKE_VOID_FUNC(bt_l2cap_recv, struct bt_conn *, struct net_buf *, bool); 22 DECLARE_FAKE_VOID_FUNC(bt_l2cap_connected, struct bt_conn *); 23 DECLARE_FAKE_VALUE_FUNC(int, bt_l2cap_update_conn_param, struct bt_conn *, 25 DECLARE_FAKE_VOID_FUNC(bt_l2cap_disconnected, struct bt_conn *); 26 DECLARE_FAKE_VALUE_FUNC(struct net_buf *, l2cap_data_pull, struct bt_conn *, size_t, size_t *);
|