arduino-audio-driver
|
Driver API for the wm8978 codec chip. More...
#include <Driver.h>
Public Member Functions | |
AudioDriverWM8978Class () | |
bool | begin (CodecConfig codecCfg, DriverPins &pins) override |
WM8978 & | driver () |
bool | end () 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 |
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) 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) |
int | toBits (sample_bits_t bits) |
int | toI2S (i2s_format_t fmt) |
Protected Attributes | |
CodecConfig | codec_cfg |
DriverPins * | p_pins = nullptr |
int | volume = 0 |
WM8978 | wm8078 |
Driver API for the wm8978 codec chip.
|
inline |
|
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 |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in AudioDriverWM8960Class, AudioDriverCS42448Class, AudioDriverCS43l22Class, and AudioDriverAD1938Class.
|
inlineoverridevirtual |
Reimplemented from AudioDriver.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Implements AudioDriver.
|
inlineprotected |
|
inlineprotected |
fmt:0,LSB(right-aligned);1,MSB(left-aligned);2,Philips standard, I2S;3,PCM/DSP;
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |