32 AD_LOGE(
"AudioBoard::driver::begin failed");
70#if DRIVER_REPORT_DRIVER_VOLUME
124#if !defined(__zephyr__)
#define DRIVER_DEFAULT_VOLUME
Definition ConfigAudioDriver.h:5
#define ES8388_PA_LINE
Definition ConfigAudioDriver.h:33
#define AD_LOGD(...)
Definition Logger.h:12
#define AD_LOGE(...)
Definition Logger.h:15
Defitintion for audio board pins and an audio driver.
Definition AudioBoard.h:13
void setPins(DriverDeviceInfo &pins)
Definition AudioBoard.h:77
bool end(void)
Definition AudioBoard.h:52
bool setPAPower(bool enable)
Definition AudioBoard.h:86
int power_amp_line
Definition AudioBoard.h:104
bool is_active
Definition AudioBoard.h:106
CodecConfig codec_cfg
Definition AudioBoard.h:103
AudioBoard(AudioDriver &driver, DriverDeviceInfo &pins)
Definition AudioBoard.h:20
bool begin()
Definition AudioBoard.h:25
bool setMute(bool enable)
Definition AudioBoard.h:57
DriverDeviceInfo & getPins()
Definition AudioBoard.h:78
AudioDriver * p_driver
Definition AudioBoard.h:101
bool isKeyPressed(uint8_t key)
Definition AudioBoard.h:94
DriverDeviceInfo & pins()
Definition AudioBoard.h:79
int getVolume()
Definition AudioBoard.h:69
AudioDriver & driver()
Definition AudioBoard.h:84
bool setConfig(CodecConfig cfg)
Updates the CodecConfig values -> reconfigures the codec only.
Definition AudioBoard.h:47
bool setInputVolume(int volume)
set volume for adc: this is only supported on some defined codecs
Definition AudioBoard.h:91
bool setVolume(int volume)
Definition AudioBoard.h:62
AudioBoard(AudioDriver *driver, DriverDeviceInfo *pins)
Definition AudioBoard.h:15
bool setMute(bool enable, int line)
Definition AudioBoard.h:58
void setDriver(AudioDriver &driver)
Definition AudioBoard.h:81
bool begin(CodecConfig cfg)
Starts the processing.
Definition AudioBoard.h:41
AudioDriver * getDriver()
Definition AudioBoard.h:83
int volume
Definition AudioBoard.h:105
DriverDeviceInfo * p_pins
Definition AudioBoard.h:102
Abstract Driver API for codec chips.
Definition AudioDriver.h:182
virtual bool setMute(bool enable)=0
Mutes all output lines.
virtual bool end(void)
Ends the processing: shut down dac and adc.
Definition AudioDriver.h:232
virtual bool setInputVolume(int volume)
Defines the input volume (range: 0-100) if supported.
Definition AudioDriver.h:246
bool setPAPower(bool enable)
Sets the PA Power pin to active or inactive.
Definition AudioDriver.h:257
virtual bool setVolume(int volume)=0
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
virtual bool setConfig(CodecConfig codecCfg)
changes the configuration
Definition AudioDriver.h:212
virtual int getVolume()=0
Determines the actual volume (range: 0-100)
virtual bool begin(CodecConfig codecCfg, DriverDeviceInfo &pins)
Starts the processing.
Definition AudioDriver.h:185
I2S configuration and definition of input and output with default values.
Definition AudioDriver.h:24
All pins for i2s, spi, i2c and other pins.
Definition DriverDeviceInfo.h:20
void end()
Definition DriverDeviceInfo.h:217
virtual bool isKeyPressed(uint8_t key)
returns true if pressed
Definition DriverDeviceInfo.h:256
static AudioDriverES8311Class AudioDriverES8311
Definition AudioDriver.h:2162
static NoDriverClass NoDriver
Definition AudioDriver.h:2184
static AudioBoard GenericCS43l22
Definition AudioBoard.h:114
static AudioBoard GenericWM8960
Definition AudioBoard.h:112
static AudioBoard GenericES8311
Definition AudioBoard.h:116
static DriverDeviceInfo NoPins
Pins need to be set up in the sketch.
Definition DriverDeviceInfo.h:390
static AudioDriverCS43l22Class AudioDriverCS43l22
Definition AudioDriver.h:2150
static AudioDriverWM8960Class AudioDriverWM8960
Definition AudioDriver.h:2176
static AudioDriverES8388Class AudioDriverES8388
Definition AudioDriver.h:2166
static AudioBoard GenericES8388
Definition AudioBoard.h:118
static AudioBoard NoBoard
Definition AudioBoard.h:110
Namespace for audio driver components.
Definition AudioBoard.h:5