13#include "driver/spi_slave.h"
39#elif defined(HSPI_HOST)
41#elif defined(SPI3_HOST)
43#elif defined(VSPI_HOST)
59 "SPIAudioSlaveConfig: sample_rate=%d, channels=%d, bits_per_sample=%d, "
60 "max_command_payload=%d, max_response_payload=%d, max_mime_len=%d ",
65 "ESP32 SPI Slave Config: use_hw_slave=%s, host=%d, dma_chan=%d, "
66 "pin_mosi=%d, pin_miso=%d, pin_sclk=%d, pin_cs=%d, queue_size=%d",
257 if (
p_buffer ==
nullptr)
return false;
465 if (!
active || data ==
nullptr || len == 0)
return 0;
474 if (!
active || data ==
nullptr || len == 0)
return 0;
563 if (n > 0 &&
payload[n - 1] ==
'\0') {
617 out[0] =
static_cast<uint8_t>(value & 0xFF);
618 out[1] =
static_cast<uint8_t>((value >> 8) & 0xFF);
619 out[2] =
static_cast<uint8_t>((value >> 16) & 0xFF);
620 out[3] =
static_cast<uint8_t>((value >> 24) & 0xFF);
626 (
static_cast<uint32_t>(in[2]) << 16) |
627 (
static_cast<uint32_t>(in[3]) << 24);
#define LOGI(...)
Definition AudioLoggerIDF.h:28
SPIAudioCommand
SPI command ids used by SPIAudioMaster.
Definition SPIAudioCommand.h:19