arduino-audio-tools
Loading...
Searching...
No Matches
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 <AnalogDriverMBED.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< Samplering_buffer {0}
 

Detailed Description

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

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ AnalogDriverMBED()

AnalogDriverMBED ( )
default

Default constructor.

◆ ~AnalogDriverMBED()

virtual ~AnalogDriverMBED ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ available()

virtual int available ( )
inlineoverridevirtual

Implements AnalogDriverBase.

◆ availableForWrite()

int availableForWrite ( )
inlinevirtual

Reimplemented from AnalogDriverBase.

◆ begin()

bool begin ( AnalogConfig  cfg)
inlinevirtual

starts the DAC

Implements AnalogDriverBase.

◆ end()

void end ( )
inlineoverridevirtual

stops the I2S and unistalls the driver

Implements AnalogDriverBase.

◆ flush()

void flush ( )
inline

◆ readBytes()

size_t readBytes ( uint8_t dest,
size_t  size_bytes 
)
inlineoverridevirtual

Implements AnalogDriverBase.

◆ write()

size_t write ( const uint8_t src,
size_t  size_bytes 
)
inlineoverridevirtual

writes the data to the I2S interface

Reimplemented from AnalogDriverBase.

◆ writeBuffer()

size_t writeBuffer ( )
inlineprotected

The ringbuffer is used to make sure that we can write full SampleBuffers.

Member Data Documentation

◆ active

bool active = false
protected

◆ adc1

AdvancedADC adc1 {PIN_ANALOG_START}
protected

◆ adc2

AdvancedADC adc2 {PIN_ANALOG_START + 1}
protected

◆ auto_center

ConverterAutoCenter auto_center
protected

◆ dac1

AdvancedDAC dac1 {PIN_DAC_1}
protected

◆ dac2

AdvancedDAC dac2 {PIN_DAC_2}
protected

◆ info

AnalogConfig info
protected

◆ ring_buffer

audio_tools::RingBuffer<Sample> ring_buffer {0}
protected

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