Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_bap_stream_ops Struct Reference

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.
 

Detailed Description

Stream operation.

Field Documentation

◆ connected

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.

Parameters
streamStream object.

◆ disconnected

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.

Parameters
streamStream object.
reasonBT_HCI_ERR_* reason for the disconnection.

◆ started

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.

Parameters
streamStream object that has been started.

◆ stopped

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.

Parameters
streamStream object that has been stopped.
reasonBT_HCI_ERR_* reason for the disconnection.

The documentation for this struct was generated from the following file: