18struct esp_lcd_touch_s;
38 typedef std::move_only_function<
Type-safe set of flags from a scoped enum.
static constexpr gpio nc()
Returns a GPIO representing "not connected".
level
GPIO output/input level.
Abstract base class for touch controllers.
touch & operator=(const touch &)=delete
virtual esp_lcd_touch_handle_t idf_handle() const =0
Returns the underlying ESP-IDF handle.
touch(const touch &)=delete
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.
gpio::level reset
Level of reset pin in reset.
unsigned int mirror_y
Mirror Y after read coordinates.
process_coordinates_callback process_coordinates
struct idfxx::lcd::touch::config::@2 levels
gpio::level interrupt
Active level of interrupt pin.
uint16_t y_max
Y coordinates max (for mirroring)
uint16_t x_max
X coordinates max (for mirroring)
unsigned int swap_xy
Swap X and Y after read coordinates.
gpio rst_gpio
GPIO number of reset pin.
unsigned int mirror_x
Mirror X after read coordinates.
gpio int_gpio
GPIO number of interrupt pin.
struct esp_lcd_touch_s esp_lcd_touch_t
esp_lcd_touch_t * esp_lcd_touch_handle_t