|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
SPI-based panel I/O interface. More...
Classes | |
| struct | spi_config |
| SPI-based panel I/O configuration. More... | |
Public Types | |
| typedef std::move_only_function< bool(esp_lcd_panel_io_event_data_t *edata)> | color_transfer_done_callback |
| Callback type invoked when color data transfer has finished. | |
Public Member Functions | |
| panel_io (idfxx::spi::master_bus &spi_bus, spi_config config) | |
| Creates a new panel I/O interface. | |
| ~panel_io () | |
| panel_io (const panel_io &)=delete | |
| panel_io & | operator= (const panel_io &)=delete |
| panel_io (panel_io &&other) noexcept | |
| panel_io & | operator= (panel_io &&other) noexcept |
| esp_lcd_panel_io_handle_t | idf_handle () const |
| Returns the underlying ESP-IDF handle. | |
Static Public Member Functions | |
| static result< panel_io > | make (idfxx::spi::master_bus &spi_bus, spi_config config) |
| Creates a new panel I/O interface. | |
SPI-based panel I/O interface.
Provides the communication layer for LCD panels and touch controllers that use SPI. This type is non-copyable and move-only. Result-returning methods on a moved-from object return errc::invalid_state. Simple accessors return default/null values.
Definition at line 44 of file panel_io.hpp.
| typedef std::move_only_function<bool(esp_lcd_panel_io_event_data_t* edata)> idfxx::lcd::panel_io::color_transfer_done_callback |
Callback type invoked when color data transfer has finished.
| edata | Panel IO event data. |
Definition at line 52 of file panel_io.hpp.
|
explicit |
Creates a new panel I/O interface.
Does not take ownership of spi_bus. It is the caller's responsibility to ensure that this panel_io does not outlive the bus.
| spi_bus | The SPI bus. |
| config | Panel I/O configuration. |
| std::system_error | on failure. |
| idfxx::lcd::panel_io::~panel_io | ( | ) |
|
noexcept |
|
inline |
Returns the underlying ESP-IDF handle.
Definition at line 125 of file panel_io.hpp.
|
static |