arduino-audio-driver
|
Driver API for the CS43l22 codec chip on 0x94 (0x4A<<1) More...
#include <Driver.h>
Public Member Functions | |
AudioDriverCS43l22Class (uint16_t deviceAddr=0x4A) | |
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) |
void | setI2CAddress (uint16_t adr) |
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 | |
virtual bool | configInterface (codec_mode_t mode, I2SDefinition iface) |
virtual bool | controlState (codec_mode_t mode) |
bool | deinit () |
uint32_t | getFrequency (samplerate_t rateNum) |
TwoWire * | getI2C () |
Determine the TwoWire object from the I2C config or use Wire. More... | |
int | getI2CAddress () |
uint16_t | getOutput (output_device_t output_device) |
virtual bool | init (codec_config_t codec_cfg) |
int | limitValue (int volume, int min=0, int max=100) |
Protected Attributes | |
CodecConfig | codec_cfg |
uint16_t | deviceAddr |
DriverPins * | p_pins = nullptr |
int | volume = 100 |
Driver API for the CS43l22 codec chip on 0x94 (0x4A<<1)
|
inline |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtual |
Reimplemented from AudioDriver.
|
inlinevirtualinherited |
Reimplemented in AudioDriverCS42448Class, AudioDriverAD1938Class, AudioDriverLyratMiniClass, AudioDriverWM8960Class, NoDriverClass, and AudioDriverWM8978Class.
|
inlineprotected |
< set to 8k samples per second
< set to 11.025k samples per second
< set to 16k samples in per second
< set to 22.050k samples per second
< set to 24k samples in per second
< set to 32k samples in per second
< set to 44.1k samples per second
< set to 48k samples per second
|
inlineprotectedinherited |
Determine the TwoWire object from the I2C config or use Wire.
|
inlineprotectedinherited |
|
inlineprotected |
|
inlinevirtual |
Implements AudioDriver.
|
inlineprotectedvirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in AudioDriverWM8978Class, AudioDriverCS42448Class, AudioDriverAD1938Class, AudioDriverWM8960Class, and NoDriverClass.
|
inlineprotectedinherited |
make sure that value is in range
volume |
|
inlineinherited |
|
inlinevirtual |
Reimplemented from AudioDriver.
|
inline |
|
inlinevirtualinherited |
|
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.
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |