Home
last modified time | relevance | path

Searched refs:conn_info (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/samples/bluetooth/central_gatt_write/src/
Dgatt_write_common.c84 struct bt_conn_info conn_info; in connected() local
96 err = bt_conn_get_info(conn, &conn_info); in connected()
102 printk("%s: %s role %u\n", __func__, addr, conn_info.role); in connected()
109 if (conn_info.role == BT_CONN_ROLE_CENTRAL) { in connected()
120 struct bt_conn_info conn_info; in disconnected() local
126 err = bt_conn_get_info(conn, &conn_info); in disconnected()
132 printk("%s: %s role %u (reason %u)\n", __func__, addr, conn_info.role, in disconnected()
139 if (conn_info.role == BT_CONN_ROLE_CENTRAL) { in disconnected()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/ll/cis/src/
Dmain.c174 struct bt_conn_info conn_info; in connected() local
178 err = bt_conn_get_info(conn, &conn_info); in connected()
184 printk("%s: %s role %u\n", __func__, addr, conn_info.role); in connected()
186 if (conn_info.role == BT_CONN_ROLE_CENTRAL) { in connected()
200 struct bt_conn_info conn_info; in disconnected() local
208 err = bt_conn_get_info(conn, &conn_info); in disconnected()
214 printk("%s: %s role %u\n", __func__, addr, conn_info.role); in disconnected()
216 if (conn_info.role == BT_CONN_ROLE_CENTRAL) { in disconnected()
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/
Dbtp_bap.c569 struct bt_conn_info conn_info; in stream_enabled() local
575 (void)bt_conn_get_info(stream->conn, &conn_info); in stream_enabled()
576 if (conn_info.role == BT_HCI_ROLE_PERIPHERAL && info.dir == BT_AUDIO_DIR_SINK) { in stream_enabled()
1014 struct bt_conn_info conn_info; in bap_discover() local
1024 (void)bt_conn_get_info(conn, &conn_info); in bap_discover()
1026 if (audio_conn->end_points_count > 0 || conn_info.role != BT_HCI_ROLE_CENTRAL) { in bap_discover()
2006 struct bt_conn_info conn_info; in ascs_configure_codec() local
2018 (void)bt_conn_get_info(conn, &conn_info); in ascs_configure_codec()
2032 if (conn_info.role == BT_HCI_ROLE_CENTRAL) { in ascs_configure_codec()
2053 struct bt_conn_info conn_info; in ascs_configure_qos() local
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dbap_stream.c127 struct bt_conn_info conn_info; in bt_bap_ep_get_info() local
131 err = bt_conn_get_info(ep->stream->conn, &conn_info); in bt_bap_ep_get_info()
138 role = conn_info.role; in bt_bap_ep_get_info()
Dbap_unicast_client.c368 struct bt_conn_info conn_info; in unicast_client_ep_iso_disconnected() local
371 err = bt_conn_get_info(stream->conn, &conn_info); in unicast_client_ep_iso_disconnected()
372 if (err != 0 || conn_info.state == BT_CONN_STATE_DISCONNECTED) { in unicast_client_ep_iso_disconnected()
1485 struct bt_conn_info conn_info; in long_ase_read() local
1487 err = bt_conn_get_info(conn, &conn_info); in long_ase_read()
1491 conn_info.le.interval = BT_GAP_INIT_CONN_INT_MIN; in long_ase_read()
1496 K_USEC(BT_CONN_INTERVAL_TO_US(conn_info.le.interval))); in long_ase_read()
Dascs.c140 struct bt_conn_info conn_info; in ase_status_changed() local
143 err = bt_conn_get_info(conn, &conn_info); in ase_status_changed()
150 if (conn_info.state == BT_CONN_STATE_CONNECTED && in ase_status_changed()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dbap.c1889 struct bt_conn_info conn_info; in stream_enabled_cb() local
1892 err = bt_conn_get_info(stream->conn, &conn_info); in stream_enabled_cb()
1898 if (conn_info.role == BT_CONN_ROLE_CENTRAL) { in stream_enabled_cb()