Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gmap_lc3_preset.h
Go to the documentation of this file.
1
9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_
10#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_
11
13
14/* GMAP LC3 unicast presets defined by table 3.16 in the GMAP v1.0 specification */
15
22#define BT_GMAP_LC3_PRESET_32_1_GR(_loc, _stream_context) \
23 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
24 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
25 _stream_context), \
26 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60U, 1U, 15U, 10000U))
27
34#define BT_GMAP_LC3_PRESET_32_2_GR(_loc, _stream_context) \
35 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
36 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
37 _stream_context), \
38 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80U, 1U, 20U, 10000U))
39
46#define BT_GMAP_LC3_PRESET_48_1_GR(_loc, _stream_context) \
47 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
48 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
49 _stream_context), \
50 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 15U, 10000U))
51
60#define BT_GMAP_LC3_PRESET_48_2_GR(_loc, _stream_context) \
61 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
62 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
63 _stream_context), \
64 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 20U, 10000U))
65
72#define BT_GMAP_LC3_PRESET_48_3_GR(_loc, _stream_context) \
73 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
74 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
75 _stream_context), \
76 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90U, 1U, 15U, 10000U))
77
86#define BT_GMAP_LC3_PRESET_48_4_GR(_loc, _stream_context) \
87 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
88 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
89 _stream_context), \
90 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120U, 1U, 20U, 10000U))
91
98#define BT_GMAP_LC3_PRESET_16_1_GS(_loc, _stream_context) \
99 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
100 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
101 _stream_context), \
102 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30U, 1U, 15U, 60000U))
103
110#define BT_GMAP_LC3_PRESET_16_2_GS(_loc, _stream_context) \
111 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
112 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
113 _stream_context), \
114 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40U, 1U, 20U, 60000U))
115
122#define BT_GMAP_LC3_PRESET_32_1_GS(_loc, _stream_context) \
123 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
124 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
125 _stream_context), \
126 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60U, 1U, 15U, 60000U))
127
134#define BT_GMAP_LC3_PRESET_32_2_GS(_loc, _stream_context) \
135 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
136 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
137 _stream_context), \
138 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80U, 1U, 20U, 60000U))
139
146#define BT_GMAP_LC3_PRESET_48_1_GS(_loc, _stream_context) \
147 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
148 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
149 _stream_context), \
150 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 15U, 60000U))
151
158#define BT_GMAP_LC3_PRESET_48_2_GS(_loc, _stream_context) \
159 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
160 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
161 _stream_context), \
162 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 20U, 60000U))
163
164/* GMAP LC3 broadcast presets defined by table 3.22 in the GMAP v1.0 specification */
165
172#define BT_GMAP_LC3_PRESET_48_1_G(_loc, _stream_context) \
173 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
174 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
175 _stream_context), \
176 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75U, 1U, 8U, 10000U))
177
184#define BT_GMAP_LC3_PRESET_48_2_G(_loc, _stream_context) \
185 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
186 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
187 _stream_context), \
188 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100U, 1U, 10U, 10000U))
189
196#define BT_GMAP_LC3_PRESET_48_3_G(_loc, _stream_context) \
197 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
198 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
199 _stream_context), \
200 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90U, 1U, 8U, 10000U))
201
208#define BT_GMAP_LC3_PRESET_48_4_G(_loc, _stream_context) \
209 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
210 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
211 _stream_context), \
212 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120U, 1U, 10U, 10000U))
213
214#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_GMAP_LC3_PRESET_ */
Header for Bluetooth BAP LC3 presets.