Zephyr Project API
3.4.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_codec_qos |
Codec QoS structure. More... | |
struct | bt_codec_qos_pref |
Audio Stream Quality of Service Preference structure. More... | |
Macros | |
#define | BT_AUDIO_BROADCAST_ID_SIZE 3 /* octets */ |
#define | BT_AUDIO_BROADCAST_ID_MAX 0xFFFFFFU |
#define | BT_AUDIO_PD_PREF_NONE 0x000000U |
#define | BT_AUDIO_PD_MAX 0xFFFFFFU |
#define | BT_AUDIO_BROADCAST_CODE_SIZE 16 |
#define | BT_AUDIO_CONTEXT_TYPE_ANY |
#define | BT_AUDIO_UNICAST_ANNOUNCEMENT_GENERAL 0x00 |
#define | BT_AUDIO_UNICAST_ANNOUNCEMENT_TARGETED 0x01 |
#define | BT_CODEC_DATA(_type, _bytes...) |
Helper to declare elements of bt_codec_data arrays. More... | |
#define | BT_CODEC(_id, _cid, _vid, _data, _meta) |
Helper to declare bt_codec structure. More... | |
#define | BT_AUDIO_LOCATION_ANY |
#define | BT_CODEC_QOS(_interval, _framing, _phy, _sdu, _rtn, _latency, _pd) |
Helper to declare elements of bt_codec_qos. More... | |
#define | BT_CODEC_QOS_UNFRAMED(_interval, _sdu, _rtn, _latency, _pd) |
Helper to declare Input Unframed bt_codec_qos. More... | |
#define | BT_CODEC_QOS_FRAMED(_interval, _sdu, _rtn, _latency, _pd) |
Helper to declare Input Framed bt_codec_qos. More... | |
#define | BT_CODEC_QOS_PREF(_unframed_supported, _phy, _rtn, _latency, _pd_min, _pd_max, _pref_pd_min, _pref_pd_max) |
Helper to declare elements of bt_codec_qos_pref. More... | |
Functions | |
ssize_t | bt_audio_codec_data_to_buf (const struct bt_codec_data *codec_data, size_t count, uint8_t *buf, size_t buf_size) |
Turns an array of bt_codec_data to a flat LTV encoded uint8_t array. 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, enum bt_audio_location *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.