|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Callback structure for CAP procedures. More...
#include <cap.h>
Data Fields | |
| void(* | unicast_discovery_complete )(struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst) |
| Callback for bt_cap_initiator_unicast_discover(). | |
| void(* | unicast_start_complete )(int err, struct bt_conn *conn) |
| Callback for bt_cap_initiator_unicast_audio_start(). | |
| void(* | unicast_update_complete )(int err, struct bt_conn *conn) |
| Callback for bt_cap_initiator_unicast_audio_update(). | |
| void(* | unicast_stop_complete )(int err, struct bt_conn *conn) |
| Callback for bt_cap_initiator_unicast_audio_stop(). | |
| void(* | broadcast_started )(struct bt_cap_broadcast_source *source) |
| The Broadcast Source has started and all of the streams are ready for audio data. | |
| void(* | broadcast_stopped )(struct bt_cap_broadcast_source *source, uint8_t reason) |
| The Broadcast Source has stopped and none of the streams are ready for audio data. | |
Callback structure for CAP procedures.
| void(* bt_cap_initiator_cb::broadcast_started) (struct bt_cap_broadcast_source *source) |
The Broadcast Source has started and all of the streams are ready for audio data.
| source | The started Broadcast Source |
| void(* bt_cap_initiator_cb::broadcast_stopped) (struct bt_cap_broadcast_source *source, uint8_t reason) |
The Broadcast Source has stopped and none of the streams are ready for audio data.
| source | The stopped Broadcast Source |
| reason | The reason why the Broadcast Source stopped (see the BT_HCI_ERR_* values) |
| void(* bt_cap_initiator_cb::unicast_discovery_complete) (struct bt_conn *conn, int err, const struct bt_csip_set_coordinator_set_member *member, const struct bt_csip_set_coordinator_csis_inst *csis_inst) |
Callback for bt_cap_initiator_unicast_discover().
| conn | The connection pointer supplied to bt_cap_initiator_unicast_discover(). |
| err | 0 if Common Audio Service was found else -ENODATA. |
| member | Pointer to the set member. NULL if err != 0. |
| csis_inst | The Coordinated Set Identification Service if Common Audio Service was found and includes a Coordinated Set Identification Service. NULL on error or if remote device does not include Coordinated Set Identification Service. NULL if err != 0. |
| void(* bt_cap_initiator_cb::unicast_start_complete) (int err, struct bt_conn *conn) |
Callback for bt_cap_initiator_unicast_audio_start().
| err |
|
| conn | Pointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel() |
| void(* bt_cap_initiator_cb::unicast_stop_complete) (int err, struct bt_conn *conn) |
Callback for bt_cap_initiator_unicast_audio_stop().
| err |
|
| conn | Pointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel() |
| void(* bt_cap_initiator_cb::unicast_update_complete) (int err, struct bt_conn *conn) |
Callback for bt_cap_initiator_unicast_audio_update().
| err |
|
| conn | Pointer to the connection where the error occurred. NULL if err is 0 or if cancelled by bt_cap_initiator_unicast_audio_cancel() |