|
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 (std::shared_ptr< 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 &&)=delete | |
| panel_io & | operator= (panel_io &&)=delete |
| esp_lcd_panel_io_handle_t | idf_handle () const |
| Returns the underlying ESP-IDF handle. | |
Static Public Member Functions | |
| static result< std::unique_ptr< panel_io > > | make (std::shared_ptr< 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.
Definition at line 42 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 50 of file panel_io.hpp.
|
explicit |
Creates a new panel I/O interface.
| spi_bus | The SPI bus. |
| config | Panel I/O configuration. |
| std::system_error | on failure. |
| idfxx::lcd::panel_io::~panel_io | ( | ) |
|
delete |
|
delete |
|
inline |
Returns the underlying ESP-IDF handle.
Definition at line 115 of file panel_io.hpp.
|
static |
Creates a new panel I/O interface.
| spi_bus | The SPI bus. |
| config | Panel I/O configuration. |