|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Panel I/O interface for SPI- and I2C-connected displays. More...
Classes | |
| struct | i2c_config |
| I2C-based panel I/O configuration. More... | |
| 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 (idfxx::i2c::master_bus &i2c_bus, i2c_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. | |
| static result< panel_io > | make (idfxx::i2c::master_bus &i2c_bus, i2c_config config) |
| Creates a new panel I/O interface. | |
Panel I/O interface for SPI- and I2C-connected displays.
Provides the communication layer for display panels (LCD, OLED, ePaper) and touch controllers that use SPI or I2C. This type is non-copyable and move-only. A moved-from object must not be used: any operation other than destruction or assignment is undefined behavior.
Definition at line 42 of file panel_io.hpp.
| typedef std::move_only_function<bool(esp_lcd_panel_io_event_data_t* edata)> idfxx::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.
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. |
|
explicit |
Creates a new panel I/O interface.
Does not take ownership of i2c_bus. It is the caller's responsibility to ensure that this panel_io does not outlive the bus.
| i2c_bus | The I2C bus. |
| config | Panel I/O configuration. |
| std::system_error | on failure. |
| idfxx::panel_io::~panel_io | ( | ) |
|
delete |
|
noexcept |
|
inline |
Returns the underlying ESP-IDF handle.
Definition at line 177 of file panel_io.hpp.
|
static |
|
static |