|
Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
Bluetooth Audio. More...
Modules | |
| Audio Broadcast APIs | |
| Audio Broadcast APIs. | |
| Audio Client APIs | |
| Audio Server APIs | |
| Codec config parsing APIs | |
| Audio codec Config APIs. | |
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_client_cb |
| struct | bt_audio_unicast_server_cb |
| struct | bt_audio_broadcast_sink_cb |
| struct | bt_audio_stream_ops |
| Stream operation. More... | |
Macros | |
| #define | BT_AUDIO_BROADCAST_ID_SIZE 3 /* octets */ |
| #define | BT_AUDIO_CONTEXT_TYPE_ANY |
| #define | BT_AUDIO_UNICAST_ANNOUNCEMENT_GENERAL 0x00 |
| #define | BT_AUDIO_UNICAST_ANNOUNCEMENT_TARGETED 0x01 |
| #define | BROADCAST_SNK_STREAM_CNT 0 |
| #define | BROADCAST_SNK_SUBGROUP_CNT 0 |
| #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... | |
| #define | BT_AUDIO_LC3_PRESET(_codec, _qos) |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_8_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 8_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_8_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 8_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_16_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 16_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_16_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 16_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_24_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 24_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_24_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 24_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_32_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 32_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_32_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 32_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_441_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 441_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_441_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 441_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_1_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_2_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_3_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_3_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_4_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_4_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_5_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 8_5_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_6_1(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_6_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_8_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 8_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_8_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 8_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_16_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 16_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_16_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 16_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_24_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 24_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_24_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 24_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_32_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 32_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_32_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 32_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_441_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 441_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_441_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 441_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_1_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_2_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_3_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_3_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_4_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_4_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_5_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_5_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_UNICAST_PRESET_48_6_2(_loc, _stream_context) |
| Helper to declare LC3 Unicast 48_6_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_8_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 8_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_8_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 8_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_16_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 16_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_16_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 16_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_24_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 24_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_24_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 24_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_32_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 32_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_32_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 32_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_441_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 441_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_441_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 441_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_1_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_1_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_2_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_2_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_3_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_3_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_4_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_4_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_5_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_5_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_6_1(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_6_1 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_8_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 8_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_8_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 8_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_16_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 16_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_16_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 16_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_24_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 24_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_24_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 24_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_32_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 32_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_32_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 32_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_441_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 441_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_441_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 441_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_1_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_1_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_2_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_2_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_3_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_3_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_4_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_4_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_5_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_5_2 codec configuration. More... | |
| #define | BT_AUDIO_LC3_BROADCAST_PRESET_48_6_2(_loc, _stream_context) |
| Helper to declare LC3 Broadcast 48_6_2 codec configuration. More... | |
Functions | |
| int | bt_audio_unicast_client_register_cb (const struct bt_audio_unicast_client_cb *cb) |
| Register unicast client callbacks. More... | |
| void | bt_audio_stream_cb_register (struct bt_audio_stream *stream, struct bt_audio_stream_ops *ops) |
| Register Audio callbacks for a stream. More... | |
Bluetooth Audio.
| #define BROADCAST_SNK_STREAM_CNT 0 |
#include <include/zephyr/bluetooth/audio/audio.h>
| #define BROADCAST_SNK_SUBGROUP_CNT 0 |
#include <include/zephyr/bluetooth/audio/audio.h>
| #define BT_AUDIO_BROADCAST_ID_SIZE 3 /* octets */ |
#include <include/zephyr/bluetooth/audio/audio.h>
| #define BT_AUDIO_CONTEXT_TYPE_ANY |
#include <include/zephyr/bluetooth/audio/audio.h>
Any known context.
| #define BT_AUDIO_LC3_BROADCAST_PRESET_16_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 16_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_16_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 16_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_16_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 16_2_1 codec configuration.
Mandatory to support as both broadcast source and sink
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_16_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 16_2_2 codec configuration.
Mandatory to support as both broadcast source and sink
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_24_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 24_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_24_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 24_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_24_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 24_2_1 codec configuration.
Mandatory to support as broadcast sink
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_24_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 24_2_2 codec configuration.
Mandatory to support as broadcast sink
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_32_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 32_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_32_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 32_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_32_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 32_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_32_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 32_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_441_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 441_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_441_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 441_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_441_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 441_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_441_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 441_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_3_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_3_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_3_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_3_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_4_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_4_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_4_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_4_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_5_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_5_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_5_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_5_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_6_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_6_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_48_6_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 48_6_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_8_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 8_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_8_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 8_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_8_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 8_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_BROADCAST_PRESET_8_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Broadcast 8_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_PRESET | ( | _codec, | |
| _qos | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare an LC3 preset structure
| #define BT_AUDIO_LC3_UNICAST_PRESET_16_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 16_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_16_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 16_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_16_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 16_2_1 codec configuration.
Mandatory to support as both unicast client and server
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_16_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 16_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_24_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 24_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_24_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 24_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_24_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 24_2_1 codec configuration.
Mandatory to support as unicast server
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_24_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 24_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_32_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 32_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_32_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 32_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_32_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 32_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_32_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 32_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_441_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 441_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_441_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 441_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_441_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 441_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_441_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 441_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_3_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_3_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_3_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_3_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_4_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_4_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_4_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_4_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_5_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 8_5_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_5_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_5_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_6_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_6_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_48_6_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 48_6_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_8_1_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 8_1_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_8_1_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 8_1_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_8_2_1 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 8_2_1 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LC3_UNICAST_PRESET_8_2_2 | ( | _loc, | |
| _stream_context | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare LC3 Unicast 8_2_2 codec configuration.
| _loc | Audio channel location bitfield (bt_audio_location) |
| <em>stream_context | Stream context (BT_AUDIO_CONTEXT*) |
| #define BT_AUDIO_LOCATION_ANY |
#include <include/zephyr/bluetooth/audio/audio.h>
Any known location.
| #define BT_AUDIO_UNICAST_ANNOUNCEMENT_GENERAL 0x00 |
#include <include/zephyr/bluetooth/audio/audio.h>
| #define BT_AUDIO_UNICAST_ANNOUNCEMENT_TARGETED 0x01 |
#include <include/zephyr/bluetooth/audio/audio.h>
| #define BT_CODEC | ( | _id, | |
| _cid, | |||
| _vid, | |||
| _data, | |||
| _meta | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare bt_codec structure.
| _id | Codec ID |
| _cid | Company ID |
| _vid | Vendor ID |
| _data | Codec Specific Data in LVT format |
| _meta | Codec Specific Metadata in LVT format |
| #define BT_CODEC_DATA | ( | _type, | |
| _bytes... | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare elements of bt_codec_data arrays.
This macro is mainly for creating an array of struct bt_codec_data elements inside bt_codec which is then passed to the likes of bt_audio_stream_config or bt_audio_stream_reconfig.
| _type | Type of advertising data field |
| _bytes | Variable number of single-byte parameters |
| #define BT_CODEC_QOS | ( | _interval, | |
| _framing, | |||
| _phy, | |||
| _sdu, | |||
| _rtn, | |||
| _latency, | |||
| _pd | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare elements of bt_codec_qos.
| _interval | SDU interval (usec) |
| _framing | Framing |
| _phy | Target PHY |
| _sdu | Maximum SDU Size |
| _rtn | Retransmission number |
| _latency | Maximum Transport Latency (msec) |
| _pd | Presentation Delay (usec) |
| #define BT_CODEC_QOS_FRAMED | ( | _interval, | |
| _sdu, | |||
| _rtn, | |||
| _latency, | |||
| _pd | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare Input Framed bt_codec_qos.
| _interval | SDU interval (usec) |
| _sdu | Maximum SDU Size |
| _rtn | Retransmission number |
| _latency | Maximum Transport Latency (msec) |
| _pd | Presentation Delay (usec) |
| #define BT_CODEC_QOS_PREF | ( | _unframed_supported, | |
| _phy, | |||
| _rtn, | |||
| _latency, | |||
| _pd_min, | |||
| _pd_max, | |||
| _pref_pd_min, | |||
| _pref_pd_max | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare elements of bt_codec_qos_pref.
| _unframed_supported | Unframed PDUs supported |
| _phy | Preferred Target PHY |
| _rtn | Preferred Retransmission number |
| _latency | Preferred Maximum Transport Latency (msec) |
| _pd_min | Minimum Presentation Delay (usec) |
| _pd_max | Maximum Presentation Delay (usec) |
| _pref_pd_min | Preferred Minimum Presentation Delay (usec) |
| _pref_pd_max | Preferred Maximum Presentation Delay (usec) |
| #define BT_CODEC_QOS_UNFRAMED | ( | _interval, | |
| _sdu, | |||
| _rtn, | |||
| _latency, | |||
| _pd | |||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Helper to declare Input Unframed bt_codec_qos.
| _interval | SDU interval (usec) |
| _sdu | Maximum SDU Size |
| _rtn | Retransmission number |
| _latency | Maximum Transport Latency (msec) |
| _pd | Presentation Delay (usec) |
| anonymous enum |
#include <include/zephyr/bluetooth/audio/audio.h>
Codec QoS Framing.
| Enumerator | |
|---|---|
| BT_CODEC_QOS_UNFRAMED | |
| BT_CODEC_QOS_FRAMED | |
| anonymous enum |
#include <include/zephyr/bluetooth/audio/audio.h>
Codec QoS Preferred PHY.
| Enumerator | |
|---|---|
| BT_CODEC_QOS_1M | |
| BT_CODEC_QOS_2M | |
| BT_CODEC_QOS_CODED | |
#include <include/zephyr/bluetooth/audio/audio.h>
Audio Active State defined by the Generic Audio assigned numbers (bluetooth.com).
| Enumerator | |
|---|---|
| BT_AUDIO_ACTIVE_STATE_DISABLED | |
| BT_AUDIO_ACTIVE_STATE_ENABLED | |
| enum bt_audio_context |
#include <include/zephyr/bluetooth/audio/audio.h>
Audio Context Type for Generic Audio.
These values are defined by the Generic Audio Assigned Numbers, bluetooth.com
| enum bt_audio_dir |
#include <include/zephyr/bluetooth/audio/audio.h>
Audio Capability type.
| Enumerator | |
|---|---|
| BT_AUDIO_DIR_SINK | |
| BT_AUDIO_DIR_SOURCE | |
| enum bt_audio_location |
#include <include/zephyr/bluetooth/audio/audio.h>
Location values for BT Audio.
These values are defined by the Generic Audio Assigned Numbers, bluetooth.com
#include <include/zephyr/bluetooth/audio/audio.h>
Codec metadata type IDs.
Metadata types defined by the Generic Audio assigned numbers (bluetooth.com).
#include <include/zephyr/bluetooth/audio/audio.h>
Parental rating defined by the Generic Audio assigned numbers (bluetooth.com).
The numbering scheme is aligned with Annex F of EN 300 707 v1.2.1 which defined parental rating for viewing.
| void bt_audio_stream_cb_register | ( | struct bt_audio_stream * | stream, |
| struct bt_audio_stream_ops * | ops | ||
| ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Register Audio callbacks for a stream.
Register Audio callbacks for a stream.
| stream | Stream object. |
| ops | Stream operations structure. |
| int bt_audio_unicast_client_register_cb | ( | const struct bt_audio_unicast_client_cb * | cb | ) |
#include <include/zephyr/bluetooth/audio/audio.h>
Register unicast client callbacks.
Only one callback structure can be registered, and attempting to registering more than one will result in an error.
| cb | Unicast client callback structure. |