|
arduino-audio-tools
|
Please use AnalogAudioStream: A very fast ADC and DAC using the ESP32 I2S interface. More...
#include <AnalogDriverESP32.h>
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 |
Please use AnalogAudioStream: A very fast ADC and DAC using the ESP32 I2S interface.
|
default |
Default constructor.
|
inlinevirtual |
Destructor.
Implements AnalogDriverBase.
Reimplemented in AnalogDriverMBED, and AnalogDriverArduino.
|
inlinevirtual |
starts the DAC
Implements AnalogDriverBase.
|
inlineoverridevirtual |
stops the I2S and unistalls the driver
Implements AnalogDriverBase.
Implements AnalogDriverBase.
Defines the current ADC pin. The following GPIO pins are supported: GPIO32-GPIO39.
writes the data to the I2S interface
Reimplemented from AnalogDriverBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |