Go to the documentation of this file.
14 #define GET_PLAY_CHANNEL_CAPABILITY(capability) (capability & 0xFFU)
15 #define GET_PLAY_SOURCE_CAPABILITY(capability) (capability >> 8U)
16 #define GET_RECORD_SOURCE_CAPABILITY(capability) (capability & 0x3FU)
17 #define GET_RECORD_CHANNEL_CAPABILITY(capability) (capability >> 6U)
status_t HAL_CODEC_SetPower(void *handle, uint32_t module, bool powerOn)
set audio codec module power.
#define GET_RECORD_SOURCE_CAPABILITY(capability)
status_t HAL_CODEC_SetVolume(void *handle, uint32_t playChannel, uint32_t volume)
set audio codec module volume.
Initialize structure of the codec.
uint32_t codecPlayCapability
status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth)
set audio data format.
codec_config_t * codecConfig
enum _codec_module_ctrl_cmd codec_module_ctrl_cmd_t
audio codec module control cmd
#define GET_RECORD_CHANNEL_CAPABILITY(capability)
@ kCODEC_ModuleSwitchI2SInInterface
#define CODEC_VOLUME_MAX_VALUE
codec maximum volume range
status_t CODEC_SetFormat(codec_handle_t *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth)
set audio data format.
@ kCODEC_SupportModuleI2SInSwitchInterface
status_t CODEC_Init(codec_handle_t *handle, codec_config_t *config)
Codec initilization.
status_t CODEC_SetRecordChannel(codec_handle_t *handle, uint32_t leftRecordChannel, uint32_t rightRecordChannel)
codec set record channel.
status_t HAL_CODEC_Deinit(void *handle)
Codec de-initilization.
status_t HAL_CODEC_ModuleControl(void *handle, uint32_t cmd, uint32_t data)
codec module control.
status_t CODEC_ModuleControl(codec_handle_t *handle, codec_module_ctrl_cmd_t cmd, uint32_t data)
codec module control.
const codec_capability_t * codecCapability
@ kStatus_CODEC_NotSupport
enum _codec_module codec_module_t
audio codec module
status_t CODEC_SetRecord(codec_handle_t *handle, uint32_t recordSource)
codec set record source.
status_t CODEC_Deinit(codec_handle_t *handle)
Codec de-initilization.
#define GET_PLAY_SOURCE_CAPABILITY(capability)
status_t HAL_CODEC_SetPlay(void *handle, uint32_t playSource)
codec set play source.
status_t CODEC_SetMute(codec_handle_t *handle, uint32_t playChannel, bool mute)
set audio codec module mute.
status_t HAL_CODEC_SetMute(void *handle, uint32_t playChannel, bool isMute)
set audio codec module mute.
status_t CODEC_SetPlay(codec_handle_t *handle, uint32_t playSource)
codec set play source.
uint32_t codecRecordCapability
static sai_transceiver_t config
status_t HAL_CODEC_SetRecordChannel(void *handle, uint32_t leftRecordChannel, uint32_t rightRecordChannel)
codec set record channel.
status_t HAL_CODEC_SetRecord(void *handle, uint32_t recordSource)
codec set record source.
status_t CODEC_SetPower(codec_handle_t *handle, codec_module_t module, bool powerOn)
set audio codec power.
int32_t status_t
Type used for all status and error return values.
status_t CODEC_SetVolume(codec_handle_t *handle, uint32_t playChannel, uint32_t volume)
set audio codec pl volume.
status_t HAL_CODEC_Init(void *handle, void *config)
Codec initilization.
uint32_t codecModuleCapability
#define GET_PLAY_CHANNEL_CAPABILITY(capability)
codec play and record capability