Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Stream operation. More...
#include <bap.h>
Data Fields | |
void(* | started )(struct bt_bap_stream *stream) |
Stream started callback. | |
void(* | stopped )(struct bt_bap_stream *stream, uint8_t reason) |
Stream stopped callback. | |
void(* | connected )(struct bt_bap_stream *stream) |
Isochronous channel connected callback. | |
void(* | disconnected )(struct bt_bap_stream *stream, uint8_t reason) |
Isochronous channel disconnected callback. | |
Stream operation.
void(* bt_bap_stream_ops::connected) (struct bt_bap_stream *stream) |
Isochronous channel connected callback.
If this callback is provided it will be called whenever the isochronous channel for the stream has been connected. This does not mean that the stream is ready to be used, which is indicated by the bt_bap_stream_ops::started callback.
If the stream shares an isochronous channel with another stream, then this callback may still be called, without the stream going into the started state.
stream | Stream object. |
void(* bt_bap_stream_ops::disconnected) (struct bt_bap_stream *stream, uint8_t reason) |
Isochronous channel disconnected callback.
If this callback is provided it will be called whenever the isochronous channel is disconnected, including when a connection gets rejected.
If the stream shares an isochronous channel with another stream, then this callback may not be called, even if the stream is leaving the streaming state.
stream | Stream object. |
reason | BT_HCI_ERR_* reason for the disconnection. |
void(* bt_bap_stream_ops::started) (struct bt_bap_stream *stream) |
Stream started callback.
Started callback is called whenever an Audio Stream has been started and will be usable for streaming.
stream | Stream object that has been started. |
void(* bt_bap_stream_ops::stopped) (struct bt_bap_stream *stream, uint8_t reason) |
Stream stopped callback.
Stopped callback is called whenever an Audio Stream has been stopped.
stream | Stream object that has been stopped. |
reason | BT_HCI_ERR_* reason for the disconnection. |