Go to the documentation of this file.
9 #ifndef _FSL_CODEC_ADAPTER_H_
10 #define _FSL_CODEC_ADAPTER_H_
22 #define HAL_CODEC_HANDLER_SIZE (WM8960_I2C_HANDLER_SIZE + 4)
32 #if defined(__cplusplus)
141 #if defined(__cplusplus)
status_t HAL_CODEC_SetPower(void *handle, uint32_t module, bool powerOn)
set audio codec module power.
status_t HAL_CODEC_SetVolume(void *handle, uint32_t playChannel, uint32_t volume)
set audio codec module volume.
status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth)
set audio data format.
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 HAL_CODEC_SetPlay(void *handle, uint32_t playSource)
codec set play source.
status_t HAL_CODEC_SetMute(void *handle, uint32_t playChannel, bool isMute)
set audio codec module mute.
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.
int32_t status_t
Type used for all status and error return values.
status_t HAL_CODEC_Init(void *handle, void *config)
Codec initilization.