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

Please use AnalogAudioStream: A very fast ADC and DAC using the ESP32 I2S interface. More...

#include <AnalogAudioESP32.h>

Inheritance diagram for AnalogDriverESP32:
AnalogDriverBase

Public Member Functions

 AnalogDriverESP32 ()=default
 Default constructor.
 
virtual ~AnalogDriverESP32 ()
 Destructor.
 
virtual int available () override
 
virtual int availableForWrite ()
 
bool begin (AnalogConfigESP32 cfg)
 starts the DAC
 
void end () override
 stops the I2S and unistalls 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
 writes the data to the I2S interface
 

Protected Member Functions

size_t outputMono (const void *src, size_t size_bytes)
 
size_t outputStereo (const void *src, size_t size_bytes)
 
void setupInputPin (int gpio)
 Defines the current ADC pin. The following GPIO pins are supported: GPIO32-GPIO39.
 

Protected Attributes

bool active = false
 
adc1_channel_t adc_channel
 
AnalogConfigESP32 adc_config
 
adc_unit_t adc_unit
 
ConverterAutoCenter auto_center
 
bool is_driver_installed = false
 
i2s_port_t port_no
 
size_t result =0
 

Detailed Description

Please use AnalogAudioStream: A very fast ADC and DAC using the ESP32 I2S interface.

Author
Phil Schatzmann

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