|
arduino-audio-tools
|
Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga. More...
#include <AnalogDriverMBED.h>


Public Member Functions | |
| AnalogDriverMBED ()=default | |
| Default constructor. | |
| virtual | ~AnalogDriverMBED () |
| Destructor. | |
| virtual int | available () override |
| int | availableForWrite () |
| bool | begin (AnalogConfig cfg) |
| starts the DAC | |
| void | end () override |
| stops the I2S and unistalls the driver | |
| void | flush () |
| size_t | readBytes (uint8_t *dest, size_t size_bytes) override |
| size_t | write (const uint8_t *src, size_t size_bytes) override |
| writes the data to the I2S interface | |
Protected Member Functions | |
| size_t | writeBuffer () |
| The ringbuffer is used to make sure that we can write full SampleBuffers. | |
Static Protected Member Functions | |
| static void | scaleTo16Bits (uint8_t *data, size_t size_bytes, int adc_bits, bool is_centered) |
Protected Attributes | |
| bool | active = false |
| AdvancedADC | adc1 {PIN_ANALOG_START} |
| AdvancedADC | adc2 {PIN_ANALOG_START + 1} |
| ConverterAutoCenter | auto_center |
| AdvancedDAC | dac1 {PIN_DAC_1} |
| AdvancedDAC | dac2 {PIN_DAC_2} |
| AnalogConfig | info |
| audio_tools::RingBuffer< Sample > | ring_buffer {0} |
Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga.
|
default |
Default constructor.
|
inlinevirtual |
Destructor.
|
inlineoverridevirtual |
Implements AnalogDriverBase.
|
inlinevirtual |
Reimplemented from AnalogDriverBase.
|
inlinevirtual |
starts the DAC
Implements AnalogDriverBase.
|
inlineoverridevirtual |
stops the I2S and unistalls the driver
Implements AnalogDriverBase.
|
inline |
Implements AnalogDriverBase.
|
inlinestaticprotectedinherited |
Scales int16_t samples with adc_bits resolution to the full 16 bit range. If the samples are not centered yet, the midpoint of the ADC range is subtracted first.
writes the data to the I2S interface
Reimplemented from AnalogDriverBase.
|
inlineprotected |
The ringbuffer is used to make sure that we can write full SampleBuffers.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |