arduino-audio-driver
|
Driver API for AD1938 TDS DAC/ADC. More...
#include <Driver.h>
Public Member Functions | |
bool | begin (CodecConfig codecCfg, DriverPins &pins) override |
AD1938 & | driver () |
bool | end (void) override |
int | getVolume () override |
bool | isInputVolumeSupported () override |
bool | isVolumeSupported () override |
DriverPins & | pins () |
virtual bool | setConfig (CodecConfig codecCfg) |
bool | setInputVolume (int volume) override |
bool | setMute (bool mute) override |
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) override |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100. More... | |
bool | setVolume (int volume, int line) |
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 | |
AD1938 | ad1938 |
CodecConfig | codec_cfg |
DriverPins * | p_pins = nullptr |
int | volume = 100 |
int | volumes [8] = {100} |
Driver API for AD1938 TDS DAC/ADC.
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inline |
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedinherited |
Determine the TwoWire object from the I2C config or use Wire.
|
inlineprotectedinherited |
|
inlineoverridevirtual |
Implements AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedinherited |
make sure that value is in range
volume |
|
inline |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineoverridevirtual |
Implements AudioDriver.
|
inlinevirtual |
Mute individual lines: only supported for some rare DACs.
Reimplemented from AudioDriver.
|
inlineinherited |
Sets the PA Power pin to active or inactive.
|
inlineoverridevirtual |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Implements AudioDriver.
|
inline |
Defines the Volume per DAC (in %) if volume is 0, mute is enabled,range is 0-100.
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |