#include "fsl_wm8960.h"
Go to the source code of this file.
Functions | |
status_t | WM8960_ConfigDataFormat (wm8960_handle_t *handle, uint32_t sysclk, uint32_t sample_rate, uint32_t bits) |
Configure the data format of audio data. More... | |
status_t | WM8960_Deinit (wm8960_handle_t *handle) |
Deinit the WM8960 codec. More... | |
uint32_t | WM8960_GetVolume (wm8960_handle_t *handle, wm8960_module_t module) |
Get the volume of different modules in WM8960. More... | |
status_t | WM8960_Init (wm8960_handle_t *handle, const wm8960_config_t *wm8960Config) |
WM8960 initialize function. More... | |
status_t | WM8960_ModifyReg (wm8960_handle_t *handle, uint8_t reg, uint16_t mask, uint16_t val) |
Modify some bits in the register using I2C. More... | |
status_t | WM8960_ReadReg (uint8_t reg, uint16_t *val) |
Read register from WM8960 using I2C. More... | |
status_t | WM8960_SetDataRoute (wm8960_handle_t *handle, wm8960_route_t route) |
Set audio data route in WM8960. More... | |
status_t | WM8960_SetJackDetect (wm8960_handle_t *handle, bool isEnabled) |
Enable/disable jack detect feature. More... | |
status_t | WM8960_SetLeftInput (wm8960_handle_t *handle, wm8960_input_t input) |
Set left audio input source in WM8960. More... | |
void | WM8960_SetMasterSlave (wm8960_handle_t *handle, bool master) |
Set WM8960 as master or slave. More... | |
status_t | WM8960_SetModule (wm8960_handle_t *handle, wm8960_module_t module, bool isEnabled) |
Enable/disable expected devices. More... | |
status_t | WM8960_SetMute (wm8960_handle_t *handle, wm8960_module_t module, bool isEnabled) |
Mute modules in WM8960. More... | |
status_t | WM8960_SetPlay (wm8960_handle_t *handle, uint32_t playSource) |
SET the WM8960 play source. More... | |
status_t | WM8960_SetProtocol (wm8960_handle_t *handle, wm8960_protocol_t protocol) |
Set the audio transfer protocol. More... | |
status_t | WM8960_SetRightInput (wm8960_handle_t *handle, wm8960_input_t input) |
Set right audio input source in WM8960. More... | |
status_t | WM8960_SetVolume (wm8960_handle_t *handle, wm8960_module_t module, uint32_t volume) |
Set the volume of different modules in WM8960. More... | |
status_t | WM8960_WriteReg (wm8960_handle_t *handle, uint8_t reg, uint16_t val) |
Write register to WM8960 using I2C. More... | |
Variables | |
static uint16_t | reg_cache [WM8960_CACHEREGNUM] |
static const uint16_t | wm8960_reg [WM8960_CACHEREGNUM] |
|
static |
Definition at line 33 of file fsl_wm8960.c.
|
static |
Definition at line 26 of file fsl_wm8960.c.