arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
audio_tools::AnalogConfig Class Reference

Configuration for Analog Reader. More...

#include <AnalogAudioArduino.h>

Inheritance diagram for audio_tools::AnalogConfig:
audio_tools::AudioBaseInfo audio_tools::AudioBaseInfo

Public Member Functions

 AnalogConfig (const AnalogConfig &cfg)=default
 Copy constructor.
 
 AnalogConfig (RxTxMode rxtxMode)
 Default constructor.
 
void logInfo ()
 
void setInputPin1 (int pin=PIN_ADC1)
 Defines an alternative input pin (for the left channel)
 
- Public Member Functions inherited from audio_tools::AudioBaseInfo
 AudioBaseInfo (const AudioBaseInfo &)=default
 
void copyFrom (AudioBaseInfo info)
 
virtual void logInfo ()
 
bool operator!= (AudioBaseInfo alt)
 
AudioBaseInfooperator= (const AudioBaseInfo &info)
 
bool operator== (AudioBaseInfo alt)
 
void setAudioInfo (AudioBaseInfo info)
 

Public Attributes

uint16_t buffer_size = ADC_BUFFER_SIZE
 
uint16_t buffers = ADC_BUFFERS
 
int dma_buf_count = I2S_BUFFER_COUNT
 
int dma_buf_len = I2S_BUFFER_SIZE
 
RxTxMode mode
 
int mode_internal
 
int port_no = I2S_NUM_0
 
int start_pin = PIN_ADC_START
 
bool uninstall_driver_on_end = true
 
bool use_apll = false
 
- Public Attributes inherited from audio_tools::AudioBaseInfo
int bits_per_sample =16
 
int channels = 0
 
int sample_rate = 0
 

Protected Member Functions

void setInputPin1 (int gpio, int channelIdx)
 Defines the current ADC pin. The following GPIO pins are supported: GPIO32-GPIO39.
 

Protected Attributes

adc1_channel_t adc_channel [2]
 
int adc_pin [2]
 
adc_unit_t adc_unit [2]
 

Friends

class AnalogAudioStream
 

Detailed Description

Configuration for Analog Reader.

ESP32 specific configuration for i2s input via adc. The default input pin is GPIO34. We always use int16_t values. The default output pins are GPIO25 and GPIO26!

Author
Phil Schatzmann
Author
Phil Schatzmann

Member Function Documentation

◆ logInfo()

void audio_tools::AnalogConfig::logInfo ( )
inlinevirtual

Reimplemented from audio_tools::AudioBaseInfo.


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