arduino-audio-tools
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AnalogDriverESP32V1 Class Referenceabstract

AnalogAudioStream: A very fast DAC using DMA using the new dac_continuous API. More...

#include <AnalogAudioESP32V1.h>

Inheritance diagram for AnalogDriverESP32V1:
AnalogDriverBase

Classes

class  IO16Bit
 conversion between int16_t and other formats More...
 

Public Member Functions

 AnalogDriverESP32V1 ()=default
 Default constructor.
 
virtual ~AnalogDriverESP32V1 ()
 Destructor.
 
int available () override
 
virtual int availableForWrite ()
 
virtual bool begin (AnalogConfig cfg)=0
 
bool begin (AnalogConfigESP32V1 cfg)
 starts the DAC
 
void end () override
 stops the I2S and uninstalls the driver
 
size_t readBytes (uint8_t *dest, size_t size_bytes) override
 
size_t write (const uint8_t *src, size_t size_bytes) override
 

Protected Member Functions

bool checkADCBitsPerSample ()
 
bool checkADCBitWidth ()
 
bool checkADCChannels ()
 
bool checkADCSampleRate ()
 
bool setup_rx ()
 
bool setup_tx ()
 
bool setupADCCalibration ()
 

Protected Attributes

bool active = false
 
bool active_rx = false
 
bool active_tx = false
 
adc_cali_handle_t adc_cali_handle = nullptr
 
adc_continuous_handle_t adc_handle = nullptr
 
ConverterAutoCenter auto_center
 
AnalogConfigESP32V1 cfg
 
NumberFormatConverterStream converter {io}
 
audio_tools::AnalogDriverESP32V1::IO16Bit this
 

Detailed Description

AnalogAudioStream: A very fast DAC using DMA using the new dac_continuous API.

Author
Phil Schatzmann

Member Function Documentation

◆ setup_rx()

bool setup_rx ( )
inlineprotected

Configure the ADC


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