#include <bap.h>
|
void(* | discover )(struct bt_conn *conn, int err, uint8_t recv_state_count) |
| Callback function for bt_bap_broadcast_assistant_discover.
|
|
void(* | scan )(const struct bt_le_scan_recv_info *info, uint32_t broadcast_id) |
| Callback function for Broadcast Audio Scan Service client scan results.
|
|
void(* | recv_state )(struct bt_conn *conn, int err, const struct bt_bap_scan_delegator_recv_state *state) |
| Callback function for when a receive state is read or updated.
|
|
void(* | recv_state_removed )(struct bt_conn *conn, uint8_t src_id) |
| Callback function for when a receive state is removed.
|
|
void(* | scan_start )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_scan_start().
|
|
void(* | scan_stop )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_scan_stop().
|
|
void(* | add_src )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_add_src().
|
|
void(* | mod_src )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_mod_src().
|
|
void(* | broadcast_code )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_broadcast_code().
|
|
void(* | rem_src )(struct bt_conn *conn, int err) |
| Callback function for bt_bap_broadcast_assistant_rem_src().
|
|
◆ add_src
void(* bt_bap_broadcast_assistant_cb::add_src) (struct bt_conn *conn, int err) |
◆ broadcast_code
void(* bt_bap_broadcast_assistant_cb::broadcast_code) (struct bt_conn *conn, int err) |
Callback function for bt_bap_broadcast_assistant_broadcast_code().
- Parameters
-
conn | The connection to the peer device. |
err | Error value. 0 on success, GATT error on fail. |
◆ discover
void(* bt_bap_broadcast_assistant_cb::discover) (struct bt_conn *conn, int err, uint8_t recv_state_count) |
Callback function for bt_bap_broadcast_assistant_discover.
- Parameters
-
conn | The connection that was used to discover Broadcast Audio Scan Service. |
err | Error value. 0 on success, GATT error or ERRNO on fail. |
recv_state_count | Number of receive states on the server. |
◆ mod_src
void(* bt_bap_broadcast_assistant_cb::mod_src) (struct bt_conn *conn, int err) |
◆ recv_state
Callback function for when a receive state is read or updated.
Called whenever a receive state is read or updated.
- Parameters
-
conn | The connection to the Broadcast Audio Scan Service server. |
err | Error value. 0 on success, GATT error on fail. |
state | The receive state or NULL if the receive state is empty. |
◆ recv_state_removed
void(* bt_bap_broadcast_assistant_cb::recv_state_removed) (struct bt_conn *conn, uint8_t src_id) |
Callback function for when a receive state is removed.
- Parameters
-
conn | The connection to the Broadcast Audio Scan Service server. |
src_id | The receive state. |
◆ rem_src
void(* bt_bap_broadcast_assistant_cb::rem_src) (struct bt_conn *conn, int err) |
◆ scan
Callback function for Broadcast Audio Scan Service client scan results.
Called when the scanner finds an advertiser that advertises the BT_UUID_BROADCAST_AUDIO UUID.
- Parameters
-
info | Advertiser information. |
broadcast_id | 24-bit broadcast ID. |
◆ scan_start
void(* bt_bap_broadcast_assistant_cb::scan_start) (struct bt_conn *conn, int err) |
◆ scan_stop
void(* bt_bap_broadcast_assistant_cb::scan_stop) (struct bt_conn *conn, int err) |
The documentation for this struct was generated from the following file:
- zephyr/bluetooth/audio/bap.h