arduino-audio-driver
|
Driver API for CS42448 TDS DAC/ADC. More...
#include <Driver.h>
Public Member Functions | |
bool | begin (CodecConfig codecCfg, DriverPins &pins) override |
CS42448 & | 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 enable) override |
bool | setMute (bool enable, 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 dac, int volume) |
bool | setVolume (int volume) override |
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 | |
CodecConfig | cfg |
CodecConfig | codec_cfg |
CS42448 | cs42448 |
DriverPins * | p_pins = nullptr |
int | volume = 100 |
Driver API for CS42448 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.
|
inline |
|
inlineoverridevirtual |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Implements AudioDriver.
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |