arduino-audio-driver
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ES7243E Class Reference

Header-only driver class for the ES7243E ADC chip. More...

#include <ES7243E.h>

Public Member Functions

 ES7243E ()=default
 
error_t configI2S (codec_mode_t mode, I2SDefinition *iface)
 Configure ES7243E adc mode and I2S interface.
 
error_t ctrlStateActive (codec_mode_t mode, bool ctrl_state_active)
 Control ES7243E adc chip.
 
error_t deinit (void)
 Deinitialize ES7243E adc chip.
 
error_t getVoiceVolume (int *volume)
 Get adc gain (value of gain 0~100)
 
error_t init (codec_config_t *codec_cfg)
 Initialize ES7243E adc chip.
 
void setAddress (int addr)
 Defines the I2C device address.
 
error_t setVoiceVolume (int volume)
 Set adc gain (value of gain 0~100)
 
void setWire (i2c_bus_handle_t handle)
 Defines the I2C bus instance to be used.
 
error_t writeReg (uint8_t reg_add, uint8_t data)
 

Protected Attributes

int i2c_addr = 0x10
 
i2c_bus_handle_t i2c_handle = nullptr
 

Detailed Description

Header-only driver class for the ES7243E ADC chip.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ ES7243E()

ES7243E ( )
default

Member Function Documentation

◆ configI2S()

error_t configI2S ( codec_mode_t  mode,
I2SDefinition *  iface 
)
inline

Configure ES7243E adc mode and I2S interface.

◆ ctrlStateActive()

error_t ctrlStateActive ( codec_mode_t  mode,
bool  ctrl_state_active 
)
inline

Control ES7243E adc chip.

◆ deinit()

error_t deinit ( void  )
inline

Deinitialize ES7243E adc chip.

◆ getVoiceVolume()

error_t getVoiceVolume ( int *  volume)
inline

Get adc gain (value of gain 0~100)

◆ init()

error_t init ( codec_config_t *  codec_cfg)
inline

Initialize ES7243E adc chip.

◆ setAddress()

void setAddress ( int  addr)
inline

Defines the I2C device address.

◆ setVoiceVolume()

error_t setVoiceVolume ( int  volume)
inline

Set adc gain (value of gain 0~100)

◆ setWire()

void setWire ( i2c_bus_handle_t  handle)
inline

Defines the I2C bus instance to be used.

◆ writeReg()

error_t writeReg ( uint8_t  reg_add,
uint8_t  data 
)
inline

Member Data Documentation

◆ i2c_addr

int i2c_addr = 0x10
protected

◆ i2c_handle

i2c_bus_handle_t i2c_handle = nullptr
protected

The documentation for this class was generated from the following file: