|
Zephyr Project API
3.1.0
A Scalable Open Source RTOS
|
Bluetooth Audio handling. More...
#include <zephyr/sys/atomic.h>#include <zephyr/bluetooth/buf.h>#include <zephyr/bluetooth/conn.h>#include <zephyr/bluetooth/hci.h>#include <zephyr/bluetooth/iso.h>#include <zephyr/bluetooth/gatt.h>#include <zephyr/bluetooth/audio/lc3.h>Go to the source code of this file.
Data Structures | |
| struct | bt_codec_data |
| Codec configuration structure. More... | |
| struct | bt_codec |
| Codec structure. More... | |
| struct | bt_audio_base_bis_data |
| struct | bt_audio_base_subgroup |
| struct | bt_audio_base |
| struct | bt_codec_qos |
| Codec QoS structure. More... | |
| struct | bt_codec_qos_pref |
| Audio Stream Quality of Service Preference structure. More... | |
| struct | bt_audio_lc3_preset |
| struct | bt_audio_stream |
| Audio stream structure. More... | |
| struct | bt_audio_unicast_server_cb |
| struct | bt_audio_broadcast_sink_cb |
| struct | bt_audio_stream_ops |
| Stream operation. More... | |
| struct | bt_audio_discover_params |
Typedefs | |
| typedef void(* | bt_audio_discover_func_t) (struct bt_conn *conn, struct bt_codec *codec, struct bt_audio_ep *ep, struct bt_audio_discover_params *params) |
| Discover Audio capabilities and endpoints callback function. More... | |
Functions | |
| void | bt_audio_stream_cb_register (struct bt_audio_stream *stream, struct bt_audio_stream_ops *ops) |
| Register Audio callbacks for a stream. More... | |
| int | bt_audio_unicast_server_register_cb (const struct bt_audio_unicast_server_cb *cb) |
| Register unicast server callbacks. More... | |
| int | bt_audio_unicast_server_unregister_cb (const struct bt_audio_unicast_server_cb *cb) |
| Unregister unicast server callbacks. More... | |
| int | bt_audio_unicast_server_location_changed (enum bt_audio_dir dir) |
| Notify location changed. More... | |
| int | bt_audio_discover (struct bt_conn *conn, struct bt_audio_discover_params *params) |
| Discover remote capabilities and endpoints. More... | |
| int | bt_audio_stream_config (struct bt_conn *conn, struct bt_audio_stream *stream, struct bt_audio_ep *ep, struct bt_codec *codec) |
| Configure Audio Stream. More... | |
| int | bt_audio_stream_reconfig (struct bt_audio_stream *stream, struct bt_codec *codec) |
| Reconfigure Audio Stream. More... | |
| int | bt_audio_stream_qos (struct bt_conn *conn, struct bt_audio_unicast_group *group, struct bt_codec_qos *qos) |
| Configure Audio Stream QoS. More... | |
| int | bt_audio_stream_enable (struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
| Enable Audio Stream. More... | |
| int | bt_audio_stream_metadata (struct bt_audio_stream *stream, struct bt_codec_data *meta, size_t meta_count) |
| Change Audio Stream Metadata. More... | |
| int | bt_audio_stream_disable (struct bt_audio_stream *stream) |
| Disable Audio Stream. More... | |
| int | bt_audio_stream_start (struct bt_audio_stream *stream) |
| Start Audio Stream. More... | |
| int | bt_audio_stream_stop (struct bt_audio_stream *stream) |
| Stop Audio Stream. More... | |
| int | bt_audio_stream_release (struct bt_audio_stream *stream, bool cache) |
| Release Audio Stream. More... | |
| int | bt_audio_stream_send (struct bt_audio_stream *stream, struct net_buf *buf) |
| Send data to Audio stream. More... | |
| int | bt_audio_unicast_group_create (struct bt_audio_stream *streams[], size_t num_stream, struct bt_audio_unicast_group **unicast_group) |
| Create audio unicast group. More... | |
| int | bt_audio_unicast_group_add_streams (struct bt_audio_unicast_group *unicast_group, struct bt_audio_stream *streams[], size_t num_stream) |
| Add streams to a unicast group as a unicast client. More... | |
| int | bt_audio_unicast_group_remove_streams (struct bt_audio_unicast_group *unicast_group, struct bt_audio_stream *streams[], size_t num_stream) |
| Remove streams from a unicast group as a unicast client. More... | |
| int | bt_audio_unicast_group_delete (struct bt_audio_unicast_group *unicast_group) |
| Delete audio unicast group. More... | |
| int | bt_audio_broadcast_source_create (struct bt_audio_stream *streams[], size_t num_stream, struct bt_codec *codec, struct bt_codec_qos *qos, struct bt_audio_broadcast_source **source) |
| Create audio broadcast source. More... | |
| int | bt_audio_broadcast_source_reconfig (struct bt_audio_broadcast_source *source, struct bt_codec *codec, struct bt_codec_qos *qos) |
| Reconfigure audio broadcast source. More... | |
| int | bt_audio_broadcast_source_start (struct bt_audio_broadcast_source *source) |
| Start audio broadcast source. More... | |
| int | bt_audio_broadcast_source_stop (struct bt_audio_broadcast_source *source) |
| Stop audio broadcast source. More... | |
| int | bt_audio_broadcast_source_delete (struct bt_audio_broadcast_source *source) |
| Delete audio broadcast source. More... | |
| void | bt_audio_broadcast_sink_register_cb (struct bt_audio_broadcast_sink_cb *cb) |
| Register Broadcast sink callbacks *. More... | |
| int | bt_audio_broadcast_sink_scan_start (const struct bt_le_scan_param *param) |
| Start scan for broadcast sources. More... | |
| int | bt_audio_broadcast_sink_scan_stop (void) |
| Stop scan for broadcast sources. More... | |
| int | bt_audio_broadcast_sink_sync (struct bt_audio_broadcast_sink *sink, uint32_t indexes_bitfield, struct bt_audio_stream *streams[], struct bt_codec *codec, const uint8_t broadcast_code[16]) |
| Sync to a broadcaster's audio. More... | |
| int | bt_audio_broadcast_sink_stop (struct bt_audio_broadcast_sink *sink) |
| Stop audio broadcast sink. More... | |
| int | bt_audio_broadcast_sink_delete (struct bt_audio_broadcast_sink *sink) |
| Release a broadcast sink. More... | |
| int | bt_codec_cfg_get_freq (const struct bt_codec *codec) |
| Extract the frequency from a codec configuration. More... | |
| int | bt_codec_cfg_get_frame_duration_us (const struct bt_codec *codec) |
| Extract frame duration from BT codec config. More... | |
| int | bt_codec_cfg_get_chan_allocation_val (const struct bt_codec *codec, uint32_t *chan_allocation) |
| Extract channel allocation from BT codec config. More... | |
| int | bt_codec_cfg_get_octets_per_frame (const struct bt_codec *codec) |
| Extract frame size in octets from BT codec config. More... | |
| int | bt_codec_cfg_get_frame_blocks_per_sdu (const struct bt_codec *codec, bool fallback_to_default) |
| Extract number of audio frame blockss in each SDU from BT codec config. More... | |
| bool | bt_codec_get_val (const struct bt_codec *codec, uint8_t type, const struct bt_codec_data **data) |
| Lookup a specific value based on type. More... | |
Bluetooth Audio handling.