| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
#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_codec *codec, struct bt_bap_stream **stream, struct bt_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) | 
| Endpoint config request callback.  More... | |
| int(* | reconfig )(struct bt_bap_stream *stream, enum bt_audio_dir dir, const struct bt_codec *codec, struct bt_codec_qos_pref *const pref, struct bt_bap_ascs_rsp *rsp) | 
| Stream reconfig request callback.  More... | |
| int(* | qos )(struct bt_bap_stream *stream, const struct bt_codec_qos *qos, struct bt_bap_ascs_rsp *rsp) | 
| Stream QoS request callback.  More... | |
| int(* | enable )(struct bt_bap_stream *stream, const struct bt_codec_data *meta, size_t meta_count, struct bt_bap_ascs_rsp *rsp) | 
| Stream Enable request callback.  More... | |
| int(* | start )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) | 
| Stream Start request callback.  More... | |
| int(* | metadata )(struct bt_bap_stream *stream, const struct bt_codec_data *meta, size_t meta_count, struct bt_bap_ascs_rsp *rsp) | 
| Stream Metadata update request callback.  More... | |
| int(* | disable )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) | 
| Stream Disable request callback.  More... | |
| int(* | stop )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) | 
| Stream Stop callback.  More... | |
| int(* | release )(struct bt_bap_stream *stream, struct bt_bap_ascs_rsp *rsp) | 
| Stream release callback.  More... | |
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_codec *codec, struct bt_bap_stream **stream, struct bt_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 | 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 struct bt_codec_data *meta, size_t meta_count, 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_count | Number of metadata entries | 
| [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 struct bt_codec_data *meta, size_t meta_count, 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_count | Number of metadata entries | 
| [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_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_codec *codec, struct bt_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 | 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. |