Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gmap_lc3_preset.h
Go to the documentation of this file.
1
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_
12
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
42#define BT_GMAP_LC3_PRESET_32_1_GR(_loc, _stream_context) \
43 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
44 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
45 _stream_context), \
46 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60U, 1U, 15U, 10000U))
47
54#define BT_GMAP_LC3_PRESET_32_2_GR(_loc, _stream_context) \
55 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
56 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
57 _stream_context), \
58 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80U, 1U, 20U, 10000U))
59
66#define BT_GMAP_LC3_PRESET_48_1_GR(_loc, _stream_context) \
67 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
68 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
69 _stream_context), \
70 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 15U, 10000U))
71
80#define BT_GMAP_LC3_PRESET_48_2_GR(_loc, _stream_context) \
81 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
82 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
83 _stream_context), \
84 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 20U, 10000U))
85
92#define BT_GMAP_LC3_PRESET_48_3_GR(_loc, _stream_context) \
93 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
94 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
95 _stream_context), \
96 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90U, 1U, 15U, 10000U))
97
106#define BT_GMAP_LC3_PRESET_48_4_GR(_loc, _stream_context) \
107 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
108 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
109 _stream_context), \
110 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120U, 1U, 20U, 10000U))
111
118#define BT_GMAP_LC3_PRESET_16_1_GS(_loc, _stream_context) \
119 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
120 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
121 _stream_context), \
122 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30U, 1U, 15U, 60000U))
123
130#define BT_GMAP_LC3_PRESET_16_2_GS(_loc, _stream_context) \
131 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
132 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
133 _stream_context), \
134 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40U, 1U, 20U, 60000U))
135
142#define BT_GMAP_LC3_PRESET_32_1_GS(_loc, _stream_context) \
143 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
144 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
145 _stream_context), \
146 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60U, 1U, 15U, 60000U))
147
154#define BT_GMAP_LC3_PRESET_32_2_GS(_loc, _stream_context) \
155 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
156 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
157 _stream_context), \
158 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80U, 1U, 20U, 60000U))
159
166#define BT_GMAP_LC3_PRESET_48_1_GS(_loc, _stream_context) \
167 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
168 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
169 _stream_context), \
170 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 15U, 60000U))
171
178#define BT_GMAP_LC3_PRESET_48_2_GS(_loc, _stream_context) \
179 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
180 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
181 _stream_context), \
182 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 20U, 60000U))
183
184/* GMAP LC3 broadcast presets defined by table 3.22 in the GMAP v1.0 specification */
185
192#define BT_GMAP_LC3_PRESET_48_1_G(_loc, _stream_context) \
193 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
194 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
195 _stream_context), \
196 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 8U, 10000U))
197
204#define BT_GMAP_LC3_PRESET_48_2_G(_loc, _stream_context) \
205 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
206 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
207 _stream_context), \
208 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 10U, 10000U))
209
216#define BT_GMAP_LC3_PRESET_48_3_G(_loc, _stream_context) \
217 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
218 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
219 _stream_context), \
220 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90U, 1U, 8U, 10000U))
221
228#define BT_GMAP_LC3_PRESET_48_4_G(_loc, _stream_context) \
229 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
230 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
231 _stream_context), \
232 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120U, 1U, 10U, 10000U))
233
234#ifdef __cplusplus
235}
236#endif
239#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_ */
Header for Bluetooth BAP LC3 presets.
Bluetooth Audio handling.
Bluetooth LC3 codec handling.