2 #include "AudioConfig.h"
3 #include "AudioTools/CoreAudio/AudioTypes.h"
6 # define PIN_I2S_MCK -1
42 pin_data = PIN_I2S_DATA_IN;
45 pin_data = PIN_I2S_DATA_OUT;
48 pin_data = PIN_I2S_DATA_OUT;
49 pin_data_rx = PIN_I2S_DATA_IN;
58 bool is_master =
true;
60 int pin_ws = PIN_I2S_WS;
61 int pin_bck = PIN_I2S_BCK;
64 int pin_mck = PIN_I2S_MCK;
69 bool use_apll = I2S_USE_APLL;
70 bool auto_clear = I2S_AUTO_CLEAR;
76 void logInfo(
const char* source=
"") {
77 AudioInfo::logInfo(source);
79 LOGI(
"port_no: %d", port_no);
80 LOGI(
"is_master: %s", is_master ?
"Master":
"Slave");
83 LOGI(
"number of channels: %d",
channels);
84 LOGI(
"signal_type: %s", i2s_signal_types[signal_type]);
87 LOGI(
"auto_clear: %s",auto_clear?
"true" :
"false");
88 if (signal_type==Digital){
89 LOGI(
"i2s_format: %s", i2s_formats[i2s_format]);
92 LOGI(
"use_apll: %s", use_apll ?
"true" :
"false");
98 LOGI(
"pin_mck: %d", pin_mck);
100 LOGI(
"pin_bck: %d", pin_bck);
102 LOGI(
"pin_ws: %d", pin_ws);
104 LOGI(
"pin_data: %d", pin_data);
105 if (pin_data_rx!=-1){
106 LOGI(
"pin_data_rx: %d", pin_data_rx);
112 using I2SConfig = I2SConfigESP32V1;
RxTxMode
The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Si...
Definition: AudioTypes.h:28