|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Type-safe SPI master bus driver for ESP32. More...
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::spi |
| SPI driver classes. | |
Classes | |
| struct | idfxx::spi::bus_config |
| SPI bus configuration. More... | |
| class | idfxx::spi::master_bus |
| A SPI master bus. More... | |
Enumerations | |
| enum class | idfxx::spi::host_device : int { idfxx::spi::host_device::spi1 = SPI1_HOST , idfxx::spi::host_device::spi2 = SPI2_HOST , idfxx::spi::host_device::spi3 = SPI3_HOST } |
| General purpose SPI Host Controller ID. More... | |
| enum class | idfxx::spi::dma_chan : int { idfxx::spi::dma_chan::disabled = SPI_DMA_DISABLED , idfxx::spi::dma_chan::ch_auto = SPI_DMA_CH_AUTO } |
| SPI DMA channel selection. More... | |
| enum class | idfxx::spi::bus_flags : uint32_t { idfxx::spi::bus_flags::slave = SPICOMMON_BUSFLAG_SLAVE , idfxx::spi::bus_flags::master = SPICOMMON_BUSFLAG_MASTER , idfxx::spi::bus_flags::iomux_pins = SPICOMMON_BUSFLAG_IOMUX_PINS , idfxx::spi::bus_flags::sclk = SPICOMMON_BUSFLAG_SCLK , idfxx::spi::bus_flags::miso = SPICOMMON_BUSFLAG_MISO , idfxx::spi::bus_flags::mosi = SPICOMMON_BUSFLAG_MOSI , idfxx::spi::bus_flags::dual , idfxx::spi::bus_flags::wphd = SPICOMMON_BUSFLAG_WPHD , idfxx::spi::bus_flags::quad = SPICOMMON_BUSFLAG_QUAD , idfxx::spi::bus_flags::io4_io7 = SPICOMMON_BUSFLAG_IO4_IO7 , idfxx::spi::bus_flags::octal = SPICOMMON_BUSFLAG_OCTAL , idfxx::spi::bus_flags::native_pins = SPICOMMON_BUSFLAG_NATIVE_PINS , idfxx::spi::bus_flags::slp_allow_pd = SPICOMMON_BUSFLAG_SLP_ALLOW_PD } |
| SPI bus capability and configuration flags. More... | |
Type-safe SPI master bus driver for ESP32.
Provides SPI bus lifecycle management with support for DMA transfers.
Depends on Core Utilities for error handling and GPIO Component for pin configuration.
|
strong |
SPI bus capability and configuration flags.
These flags serve two purposes:
Definition at line 70 of file master.hpp.
|
strong |
SPI DMA channel selection.
| Enumerator | |
|---|---|
| disabled | No DMA. |
| ch_auto | Auto select DMA channel. |
Definition at line 52 of file master.hpp.
|
strong |
General purpose SPI Host Controller ID.
| Enumerator | |
|---|---|
| spi1 | SPI1. |
| spi2 | SPI2. |
| spi3 | SPI3. |
Definition at line 40 of file master.hpp.