|
status_t | WM8904_CheckAudioFormat (wm8904_handle_t *handle, wm8904_audio_format_t *format, uint32_t mclkFreq) |
| check and update the audio data format. This api is used check the fsRatio setting based on the mclk and sample rate, if fsRatio setting is not correct, it will correct it according to mclk and sample rate. More...
|
|
status_t | WM8904_Deinit (wm8904_handle_t *handle) |
| Deinitializes the WM8904 codec. More...
|
|
status_t | WM8904_EnableADCTDMMode (wm8904_handle_t *handle, wm8904_timeslot_t timeSlot) |
| Enable WM8904 ADC time slot. More...
|
|
status_t | WM8904_EnableDACTDMMode (wm8904_handle_t *handle, wm8904_timeslot_t timeSlot) |
| Enable WM8904 DAC time slot. More...
|
|
void | WM8904_GetDefaultConfig (wm8904_config_t *config) |
| Fills the configuration structure with default values. More...
|
|
status_t | WM8904_Init (wm8904_handle_t *handle, wm8904_config_t *wm8904Config) |
| Initializes WM8904. More...
|
|
status_t | WM8904_ModifyRegister (wm8904_handle_t *handle, uint8_t reg, uint16_t mask, uint16_t value) |
| WM8904 modify register. More...
|
|
status_t | WM8904_ReadRegister (wm8904_handle_t *handle, uint8_t reg, uint16_t *value) |
| WM8904 write register. More...
|
|
status_t | WM8904_SelectLRCPolarity (wm8904_handle_t *handle, uint32_t polarity) |
| Select LRC polarity. More...
|
|
status_t | WM8904_SeMasterClock (wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint32_t bitWidth) |
| Sets WM8904 master clock configuration. More...
|
|
status_t | WM8904_SetAudioFormat (wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint32_t bitWidth) |
| Sets the audio data format. More...
|
|
status_t | WM8904_SetChannelMute (wm8904_handle_t *handle, uint32_t channel, bool isMute) |
| Sets the channel mute. More...
|
|
status_t | WM8904_SetChannelVolume (wm8904_handle_t *handle, uint32_t channel, uint32_t volume) |
| Sets the channel output volume. More...
|
|
status_t | WM8904_SetFLLConfig (wm8904_handle_t *handle, wm8904_fll_config_t *config) |
| WM8904 set PLL configuration This function will enable the GPIO1 FLL clock output function, so user can see the generated fll output clock frequency from WM8904 GPIO1. More...
|
|
status_t | WM8904_SetMasterSlave (wm8904_handle_t *handle, bool master) |
| Sets WM8904 as master or slave. More...
|
|
status_t | WM8904_SetModulePower (wm8904_handle_t *handle, wm8904_module_t module, bool isEnabled) |
|
status_t | WM8904_SetMute (wm8904_handle_t *handle, bool muteLeft, bool muteRight) |
| Sets the headphone output mute. More...
|
|
status_t | WM8904_SetPlay (wm8904_handle_t *handle, uint32_t playSource) |
| SET the WM8904 play source. More...
|
|
status_t | WM8904_SetProtocol (wm8904_handle_t *handle, wm8904_protocol_t protocol) |
| Sets the audio data transfer protocol. More...
|
|
status_t | WM8904_SetRecord (wm8904_handle_t *handle, uint32_t recordSource) |
| SET the WM8904 record source. More...
|
|
status_t | WM8904_SetRecordChannel (wm8904_handle_t *handle, uint32_t leftRecordChannel, uint32_t rightRecordChannel) |
| SET the WM8904 record source. More...
|
|
status_t | WM8904_SetVolume (wm8904_handle_t *handle, uint16_t volumeLeft, uint16_t volumeRight) |
| Sets the module output volume. More...
|
|
static status_t | WM8904_UpdateFormat (wm8904_handle_t *handle, wm8904_audio_format_t *format) |
| WM8904 update format. More...
|
|
static status_t | WM8904_WaitOnWriteSequencer (wm8904_handle_t *handle) |
| WM8904 wait on write sequencer. More...
|
|
status_t | WM8904_WriteRegister (wm8904_handle_t *handle, uint8_t reg, uint16_t value) |
| WM8904 write register. More...
|
|