arduino-audio-driver
|
Driver API for WM8990 codec chip. More...
#include <Driver.h>
Public Member Functions | |
bool | begin (CodecConfig codecCfg, DriverPins &pins) |
void | dumpRegisters () |
bool | end (void) |
int | getVolume () |
bool | isInputVolumeSupported () |
bool | isVolumeSupported () |
DriverPins & | pins () |
virtual bool | setConfig (CodecConfig codecCfg) |
void | setEnablePLL (bool active) |
Configuration: enable/disable PLL (active by default) More... | |
void | setI2CRetryCount (int cnt) |
Configuration: define retry count (default : 0) More... | |
bool | setInputVolume (int volume) |
void | setMclkHz (uint32_t hz) |
Configuration: define master clock frequency (default: 0) More... | |
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) |
bool | configure_clocking () |
virtual bool | controlState (codec_mode_t mode) |
virtual bool | deinit () |
int | getFeatures (CodecConfig cfg) |
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) |
mtb_wm8960_mode_t | modeMasterSlave (bool is_master) |
if microcontroller is master then module is slave More... | |
mtb_wm8960_adc_dac_sample_rate_t | sampleRate (int rate) |
mtb_wm8960_word_length_t | wordLength (int bits) |
Protected Attributes | |
CodecConfig | codec_cfg |
int | i2c_retry_count = 0 |
DriverPins * | p_pins = nullptr |
int | volume_in = 100 |
int | volume_out = 100 |
bool | vs1053_enable_pll = true |
uint32_t | vs1053_mclk_hz = 0 |
Driver API for WM8990 codec chip.
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlineprotected |
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inline |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotected |
|
inlineprotectedinherited |
Determine the TwoWire object from the I2C config or use Wire.
|
inlineprotectedinherited |
|
inlinevirtual |
Implements AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedinherited |
make sure that value is in range
volume |
|
inlineprotected |
if microcontroller is master then module is slave
|
inlineinherited |
|
inlineprotected |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inline |
Configuration: enable/disable PLL (active by default)
|
inline |
Configuration: define retry count (default : 0)
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inline |
Configuration: define master clock frequency (default: 0)
|
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.
|
inlineprotected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |