|
Zephyr Project API
3.1.0
A Scalable Open Source RTOS
|
Capability operations structure. More...
#include <capabilities.h>
Data Fields | |
| struct bt_audio_stream *(* | config )(struct bt_conn *conn, struct bt_audio_ep *ep, enum bt_audio_dir dir, struct bt_audio_capability *cap, struct bt_codec *codec) |
| Capability config callback. More... | |
| int(* | reconfig )(struct bt_audio_stream *stream, struct bt_audio_capability *cap, struct bt_codec *codec) |
| Capability reconfig callback. More... | |
| int(* | qos )(struct bt_audio_stream *stream, struct bt_codec_qos *qos) |
| Capability QoS callback. More... | |
| int(* | enable )(struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
| Capability Enable callback. More... | |
| int(* | start )(struct bt_audio_stream *stream) |
| Capability Start callback. More... | |
| int(* | metadata )(struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
| Capability Metadata callback. More... | |
| int(* | disable )(struct bt_audio_stream *stream) |
| Capability Disable callback. More... | |
| int(* | stop )(struct bt_audio_stream *stream) |
| Capability Stop callback. More... | |
| int(* | release )(struct bt_audio_stream *stream) |
| Capability release callback. More... | |
Capability operations structure.
These are only used for unicast streams and broadcast sink streams.
| struct bt_audio_stream *(* bt_audio_capability_ops::config) (struct bt_conn *conn, struct bt_audio_ep *ep, enum bt_audio_dir dir, struct bt_audio_capability *cap, struct bt_codec *codec) |
Capability config callback.
Config callback is called whenever a new Audio Stream needs to be allocated.
| conn | Connection object |
| ep | Remote Audio Endpoint being configured |
| dir | Direction of the endpoint. |
| cap | Local Audio Capability being configured |
| codec | Codec configuration |
| int(* bt_audio_capability_ops::disable) (struct bt_audio_stream *stream) |
Capability Disable callback.
Disable callback is called whenever an Audio Stream is about to be disabled.
| stream | Stream object being disabled. |
| int(* bt_audio_capability_ops::enable) (struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
Capability Enable callback.
Enable callback is called whenever an Audio Stream is about to be enabled.
| stream | Stream object being enabled. |
| meta_count | Number of metadata entries |
| meta | Metadata entries |
| int(* bt_audio_capability_ops::metadata) (struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
Capability Metadata callback.
Metadata callback is called whenever an Audio Stream needs to update its metadata.
| stream | Stream object. |
| meta_count | Number of metadata entries |
| meta | Metadata entries |
| int(* bt_audio_capability_ops::qos) (struct bt_audio_stream *stream, struct bt_codec_qos *qos) |
Capability QoS callback.
QoS callback is called whenever an Audio Stream Quality of Service needs to be configured.
| stream | Stream object being reconfigured. |
| QoS | Quality of Service configuration |
| int(* bt_audio_capability_ops::reconfig) (struct bt_audio_stream *stream, struct bt_audio_capability *cap, struct bt_codec *codec) |
Capability reconfig callback.
Reconfig callback is called whenever an Audio Stream needs to be reconfigured with different codec configuration.
| stream | Stream object being reconfigured. |
| cap | Local Audio Capability being reconfigured |
| codec | Codec configuration |
| int(* bt_audio_capability_ops::release) (struct bt_audio_stream *stream) |
Capability release callback.
Release callback is called whenever a new Audio Stream needs to be deallocated.
| stream | Stream object. |
| int(* bt_audio_capability_ops::start) (struct bt_audio_stream *stream) |
Capability Start callback.
Start callback is called whenever an Audio Stream is about to start streaming.
| stream | Stream object. |
| int(* bt_audio_capability_ops::stop) (struct bt_audio_stream *stream) |
Capability Stop callback.
Stop callback is called whenever an Audio Stream is about to stop streaming.
| stream | Stream object. |