Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
Bluetooth Audio handling. More...
#include <sys/atomic.h>
#include <bluetooth/buf.h>
#include <bluetooth/conn.h>
#include <bluetooth/hci.h>
#include <bluetooth/iso.h>
#include <bluetooth/gatt.h>
#include <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... | |
Enumerations | |
enum | { BT_CODEC_QOS_IN , BT_CODEC_QOS_OUT , BT_CODEC_QOS_INOUT } |
Audio QoS direction. More... | |
enum | { BT_CODEC_QOS_UNFRAMED = 0x00 , BT_CODEC_QOS_FRAMED = 0x01 } |
Codec QoS Framing. More... | |
enum | { BT_CODEC_QOS_1M = BIT(0) , BT_CODEC_QOS_2M = BIT(1) , BT_CODEC_QOS_CODED = BIT(2) } |
Codec QoS Preferred PHY. More... | |
enum | bt_audio_pac_type { BT_AUDIO_SINK = 0x01 , BT_AUDIO_SOURCE = 0x02 } |
Audio Capability type. 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_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, uint8_t meta_count, struct bt_codec_data *meta) |
Enable Audio Stream. More... | |
int | bt_audio_stream_metadata (struct bt_audio_stream *stream, uint8_t meta_count, struct bt_codec_data *meta) |
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, uint8_t num_stream, struct bt_audio_unicast_group **unicast_group) |
Create audio unicast group. 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, uint8_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... | |
Bluetooth Audio handling.