Please use AnalogAudioStream: A very fast ADC and DAC using the ESP32 I2S interface.
More...
#include <AnalogDriverESP32.h>
|
| 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
|
|
|
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.
|
|
|
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.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ available()
virtual int available |
( |
| ) |
|
|
inlineoverridevirtual |
◆ begin()
◆ end()
◆ readBytes()
size_t readBytes |
( |
uint8_t * |
dest, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineoverridevirtual |
◆ write()
size_t write |
( |
const uint8_t * |
src, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: