This is an automated email from the ASF dual-hosted git repository.
kopyscinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 6ce56a4fa host/audio: add defines for Codec Formats
6ce56a4fa is described below
commit 6ce56a4fa009c8b9cb469279f53d3a0e38c1e845
Author: Krzysztof Kopyściński <[email protected]>
AuthorDate: Fri Apr 26 09:18:27 2024 +0200
host/audio: add defines for Codec Formats
Adds Codec Formats from Assigned Numbers.
---
nimble/host/audio/include/audio/ble_audio.h | 34 +++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/nimble/host/audio/include/audio/ble_audio.h
b/nimble/host/audio/include/audio/ble_audio.h
index 59122cfa8..05a583be2 100644
--- a/nimble/host/audio/include/audio/ble_audio.h
+++ b/nimble/host/audio/include/audio/ble_audio.h
@@ -71,6 +71,40 @@
/** Public Broadcast Announcement Service UUID. */
#define BLE_BROADCAST_PUB_ANNOUNCEMENT_SVC_UUID 0x1856
+/**
+ * @defgroup ble_audio_codec_formats Bluetooth Low Energy Audio Codec Formats
+ * @{
+ */
+
+/** BLE Audio codec format - μ-law log */
+#define BLE_AUDIO_CODEC_FORMAT_MU_LAW_LOG 0x00
+
+/** BLE Audio codec format - A-law log */
+#define BLE_AUDIO_CODEC_FORMAT_A_LAW_LOG 0x01
+
+/** BLE Audio codec format - CVSD */
+#define BLE_AUDIO_CODEC_FORMAT_CVSD 0x02
+
+/** BLE Audio codec format - Transparent */
+#define BLE_AUDIO_CODEC_FORMAT_TRANSPARENT 0x03
+
+/** BLE Audio codec format - Linear PCM */
+#define BLE_AUDIO_CODEC_FORMAT_LINEAR_PCM 0x04
+
+/** BLE Audio codec format - mSBC */
+#define BLE_AUDIO_CODEC_FORMAT_MSBC 0x05
+
+/** BLE Audio codec format - LC3 */
+#define BLE_AUDIO_CODEC_FORMAT_LC3 0x06
+
+/** BLE Audio codec format - G.729A */
+#define BLE_AUDIO_CODEC_FORMAT_G_729A 0x07
+
+/** BLE Audio codec format - Vendor Specific */
+#define BLE_AUDIO_CODEC_FORMAT_VENDOR_SPECIFIC 0xFF
+
+/** @} */
+
/**
* @defgroup ble_audio_sampling_rates Bluetooth Low Energy Audio Sampling Rates
* @{