arduino-audio-driver
|
Driver API for ES7243e codec chip. More...
#include <Driver.h>
Public Member Functions | |
virtual bool | begin (CodecConfig codecCfg, DriverPins &pins) |
virtual bool | end (void) |
int | getVolume () |
virtual bool | isInputVolumeSupported () |
virtual bool | isVolumeSupported () |
DriverPins & | pins () |
virtual bool | setConfig (CodecConfig codecCfg) |
virtual bool | setInputVolume (int volume) |
bool | setMute (bool mute) |
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 | |
bool | configInterface (codec_mode_t mode, I2SDefinition iface) |
bool | controlState (codec_mode_t mode) |
bool | deinit () |
TwoWire * | getI2C () |
Determine the TwoWire object from the I2C config or use Wire. More... | |
int | getI2CAddress () |
bool | init (codec_config_t codec_cfg) |
int | limitValue (int volume, int min=0, int max=100) |
Protected Attributes | |
CodecConfig | codec_cfg |
DriverPins * | p_pins = nullptr |
int | volume = 0 |
Driver API for ES7243e codec chip.
|
inlinevirtualinherited |
|
inlineprotectedvirtual |
< error_t value indicating success (no error)
Reimplemented from AudioDriver.
|
inlineprotectedvirtual |
< error_t value indicating success (no error)
Reimplemented from AudioDriver.
|
inlineprotectedvirtual |
< error_t value indicating success (no error)
Reimplemented from AudioDriver.
|
inlinevirtualinherited |
Reimplemented in AudioDriverCS42448Class, AudioDriverAD1938Class, AudioDriverLyratMiniClass, AudioDriverWM8960Class, NoDriverClass, and AudioDriverWM8978Class.
|
inlineprotectedinherited |
Determine the TwoWire object from the I2C config or use Wire.
|
inlineprotectedinherited |
|
inlinevirtual |
Implements AudioDriver.
|
inlineprotectedvirtual |
< error_t value indicating success (no error)
Reimplemented from AudioDriver.
|
inlinevirtualinherited |
|
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.
|
inlinevirtualinherited |
|
inlinevirtual |
< error_t value indicating success (no error)
< error_t value indicating success (no error)
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.
< error_t value indicating success (no error)
Implements AudioDriver.
|
protectedinherited |
|
protectedinherited |
|
protected |