arduino-audio-driver
|
Driver API for Lyrat Mini with a ES8311 and a ES7243 codec chip. More...
#include <Driver.h>
Public Member Functions | |
bool | begin (CodecConfig codecCfg, DriverPins &pins) |
bool | end (void) |
int | getInputVolume () |
int | getVolume () |
bool | isInputVolumeSupported () |
virtual bool | isVolumeSupported () |
DriverPins & | pins () |
virtual bool | setConfig (CodecConfig codecCfg) |
bool | setInputVolume (int volume) |
bool | setMute (bool enable) |
virtual bool | setMute (bool mute, int line) |
Mute individual lines: only supported for some rare DACs. More... | |
bool | setPAPower (bool enable) |
Sets the PA Power pin to active or inactive. More... | |
bool | setVolume (int volume) |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100. More... | |
Protected Member Functions | |
virtual bool | configInterface (codec_mode_t mode, I2SDefinition iface) |
virtual bool | controlState (codec_mode_t mode) |
virtual bool | deinit () |
TwoWire * | getI2C () |
Determine the TwoWire object from the I2C config or use Wire. More... | |
int | getI2CAddress () |
virtual bool | init (codec_config_t codec_cfg) |
int | limitValue (int volume, int min=0, int max=100) |
Protected Attributes | |
AudioDriverES7243Class | adc |
CodecConfig | codec_cfg |
AudioDriverES8311Class | dac |
DriverPins * | p_pins = nullptr |
Driver API for Lyrat Mini with a ES8311 and a ES7243 codec chip.
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedinherited |
Determine the TwoWire object from the I2C config or use Wire.
|
inlineprotectedinherited |
|
inline |
|
inlinevirtual |
Implements AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlinevirtualinherited |
Reimplemented in AudioDriverWM8978Class, AudioDriverCS42448Class, AudioDriverAD1938Class, AudioDriverWM8960Class, and NoDriverClass.
|
inlineprotectedinherited |
make sure that value is in range
volume |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in AudioDriverWM8960Class, AudioDriverCS42448Class, AudioDriverCS43l22Class, and AudioDriverAD1938Class.
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlinevirtual |
Implements AudioDriver.
|
inlinevirtualinherited |
Mute individual lines: only supported for some rare DACs.
Reimplemented in AudioDriverES8388Class, AudioDriverAD1938Class, and AudioDriverCS42448Class.
|
inlineinherited |
Sets the PA Power pin to active or inactive.
|
inlinevirtual |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Implements AudioDriver.
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |