14#include <idfxx/lcd/panel_io>
15#include <idfxx/lcd/touch>
32#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
74 struct callback_state {
80 static void process_coordinates(
90 std::unique_ptr<callback_state> _callbacks;
SPI-based panel I/O interface.
STMPE610 resistive touch controller driver.
stmpe610 & operator=(const stmpe610 &)=delete
stmpe610(stmpe610 &&other) noexcept
stmpe610 & operator=(stmpe610 &&other) noexcept
stmpe610(const stmpe610 &)=delete
esp_lcd_touch_handle_t idf_handle() const override
Returns the underlying ESP-IDF handle.
static result< stmpe610 > make(idfxx::lcd::panel_io &panel_io, config config)
Creates a new stmpe610 touch controller.
stmpe610(idfxx::lcd::panel_io &panel_io, config config)
Creates a new stmpe610 touch controller.
Abstract base class for touch controllers.
std::move_only_function< void(uint16_t *x, uint16_t *y, uint16_t *strength, uint8_t *point_num, uint8_t max_point_num)> process_coordinates_callback
Callback type for processing touch coordinates.
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Configuration structure for touch controllers.
esp_lcd_touch_t * esp_lcd_touch_handle_t