Functions | Variables
fsl_wm8960.c File Reference
#include "fsl_wm8960.h"
Include dependency graph for fsl_wm8960.c:

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]
 

Variable Documentation

◆ reg_cache

uint16_t reg_cache[WM8960_CACHEREGNUM]
static

Definition at line 33 of file fsl_wm8960.c.

◆ wm8960_reg

const uint16_t wm8960_reg[WM8960_CACHEREGNUM]
static
Initial value:
= {
0x0097, 0x0097, 0x0000, 0x0000, 0x0000, 0x0008, 0x0000, 0x000a, 0x01c0, 0x0000, 0x00ff, 0x00ff, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x007b, 0x0100, 0x0032, 0x0000, 0x00c3, 0x00c3, 0x01c0, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0100, 0x0100, 0x0050, 0x0050, 0x0050, 0x0050, 0x0000, 0x0000, 0x0000, 0x0000,
0x0040, 0x0000, 0x0000, 0x0050, 0x0050, 0x0000, 0x0002, 0x0037, 0x004d, 0x0080, 0x0008, 0x0031, 0x0026, 0x00e9,
}

Definition at line 26 of file fsl_wm8960.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57