Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Unicast Server callback structure. More...
#include <bap.h>
Data Fields | |
int(* | config )(struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) |
Endpoint config request callback. | |
int(* | reconfig )(struct bt_bap_stream *stream, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) |
Stream reconfig request callback. | |
int(* | qos )(struct bt_bap_stream *stream, const struct bt_audio_codec_qos *qos, struct bt_bap_ascs_rsp *rsp) |
Stream QoS request callback. | |
int(* | enable )(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp) |
Stream Enable request callback. | |
int(* | start )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Start request callback. | |
int(* | metadata )(struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp) |
Stream Metadata update request callback. | |
int(* | disable )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Disable request callback. | |
int(* | stop )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Stop callback. | |
int(* | release )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream release callback. | |
Unicast Server callback structure.
int(* bt_bap_unicast_server_cb::config) (struct bt_conn *conn, const struct bt_bap_ep *ep, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_bap_stream **stream, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) |
Endpoint config request callback.
Config callback is called whenever an endpoint is requested to be configured
[in] | conn | Connection object. |
[in] | ep | Local Audio Endpoint being configured. |
[in] | dir | Direction of the endpoint. |
[in] | codec_cfg | Codec configuration. |
[out] | stream | Pointer to stream that will be configured for the endpoint. |
[out] | pref | Pointer to a QoS preference object that shall be populated with values. Invalid values will reject the codec configuration request. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::disable) (struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Disable request callback.
Disable callback is called whenever an Audio Stream is requested to disable the stream.
[in] | stream | Stream object being disabled. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::enable) (struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp) |
Stream Enable request callback.
Enable callback is called whenever an Audio Stream is requested to be enabled to stream.
[in] | stream | Stream object being enabled. |
[in] | meta | Metadata entries. |
[in] | meta_len | Length of metadata. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::metadata) (struct bt_bap_stream *stream, const uint8_t meta[], size_t meta_len, struct bt_bap_ascs_rsp *rsp) |
Stream Metadata update request callback.
Metadata callback is called whenever an Audio Stream is requested to update its metadata.
[in] | stream | Stream object. |
[in] | meta | Metadata entries. |
[in] | meta_len | Length of metadata. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::qos) (struct bt_bap_stream *stream, const struct bt_audio_codec_qos *qos, struct bt_bap_ascs_rsp *rsp) |
Stream QoS request callback.
QoS callback is called whenever an Audio Stream Quality of Service needs to be configured.
[in] | stream | Stream object being reconfigured. |
[in] | qos | Quality of Service configuration. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::reconfig) (struct bt_bap_stream *stream, enum bt_audio_dir dir, const struct bt_audio_codec_cfg *codec_cfg, struct bt_audio_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) |
Stream reconfig request callback.
Reconfig callback is called whenever an Audio Stream needs to be reconfigured with different codec configuration.
[in] | stream | Stream object being reconfigured. |
[in] | dir | Direction of the endpoint. |
[in] | codec_cfg | Codec configuration. |
[out] | pref | Pointer to a QoS preference object that shall be populated with values. Invalid values will reject the codec configuration request. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::release) (struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream release callback.
Release callback is called whenever a new Audio Stream needs to be released and thus deallocated.
[in] | stream | Stream object. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::start) (struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Start request callback.
Start callback is called whenever an Audio Stream is requested to start streaming.
[in] | stream | Stream object. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |
int(* bt_bap_unicast_server_cb::stop) (struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) |
Stream Stop callback.
Stop callback is called whenever an Audio Stream is requested to stop streaming.
[in] | stream | Stream object. |
[out] | rsp | Object for the ASE operation response. Only used if the return value is non-zero. |