3 #include "AudioConfig.h"
4 #if defined(USE_ANALOG) && defined(ESP32) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0 , 0) || defined(DOXYGEN)
6 # include "driver/i2s.h"
7 # include "driver/adc.h"
8 # include "soc/dac_channel.h"
9 # include "soc/adc_channel.h"
23 int buffer_count = ANALOG_BUFFER_COUNT;
24 int buffer_size = ANALOG_BUFFER_SIZE;
26 bool is_blocking_write =
true;
27 bool is_auto_center_read =
true;
31 bool use_apll =
false;
34 int port_no = I2S_NUM_0;
35 bool auto_clear = I2S_AUTO_CLEAR;
36 bool uninstall_driver_on_end =
true;
45 rx_tx_mode = rxtxMode;
46 if (rx_tx_mode == RX_MODE) {
47 mode_internal = (I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_ADC_BUILT_IN);
50 LOGI(
"I2S_MODE_ADC_BUILT_IN");
52 mode_internal = (I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN);
53 LOGI(
"I2S_MODE_DAC_BUILT_IN");
62 if (rx_tx_mode == TX_MODE){
63 LOGI(
"analog left output pin: %d", 25);
64 LOGI(
"analog right output pin: %d", 26);
77 using AnalogConfig = AnalogConfigESP32;
RxTxMode
The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Si...
Definition: AudioTypes.h:28