2 #include "AudioConfig.h"
3 #include "AudioTools/CoreAudio/AudioTypes.h"
6 # define PIN_I2S_MCK -1
34 pin_data = PIN_I2S_DATA_IN;
37 pin_data = PIN_I2S_DATA_OUT;
40 pin_data = PIN_I2S_DATA_OUT;
41 pin_data_rx = PIN_I2S_DATA_IN;
49 bool is_master =
true;
51 int buffer_count = I2S_BUFFER_COUNT;
52 int buffer_size = I2S_BUFFER_SIZE;
54 int pin_ws = PIN_I2S_WS;
55 int pin_bck = PIN_I2S_BCK;
58 int pin_mck = PIN_I2S_MCK;
60 int pin_alt_function = -1;
63 #if defined(RP2040_HOWER)
65 int mck_multiplier = 64;
69 #if defined(USE_ALT_PIN_SUPPORT)
70 bool is_arduino_pin_numbers =
true;
73 void logInfo(
const char* source=
"") {
74 AudioInfo::logInfo(source);
77 LOGI(
"is_master: %s", is_master ?
"Master":
"Slave");
80 LOGI(
"number of channels: %d", (
int)
channels);
81 LOGI(
"i2s_format: %s", i2s_formats[i2s_format]);
82 LOGI(
"buffer_count:%d",buffer_count);
83 LOGI(
"buffer_size:%d",buffer_size);
87 LOGI(
"pin_mck: %d", pin_mck);
89 LOGI(
"pin_bck: %d", pin_bck);
91 LOGI(
"pin_ws: %d", pin_ws);
93 LOGI(
"pin_data: %d", pin_data);
95 LOGI(
"pin_data_rx: %d", pin_data_rx);
102 using I2SConfig = I2SConfigStd;
RxTxMode
The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Si...
Definition: AudioTypes.h:28