Skip to content

Commit

Permalink
host/audio: add defines for Codec Formats
Browse files Browse the repository at this point in the history
Adds Codec Formats from Assigned Numbers.
  • Loading branch information
KKopyscinski committed Apr 26, 2024
1 parent 1543982 commit eae2ca7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions nimble/host/audio/include/audio/ble_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
* @{
Expand Down

0 comments on commit eae2ca7

Please sign in to comment.