arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AnalogDriverMBED Class Reference

Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga. More...

#include <AnalogAudioMBED.h>

Inheritance diagram for AnalogDriverMBED:
AnalogDriverBase

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.
 

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}
 

Detailed Description

Please use AnalogAudioStream: A ADC and DAC API for the Arduino Giga.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: