18struct esp_lcd_touch_s;
38 typedef std::move_only_function<
39 void(uint16_t* x, uint16_t* y, uint16_t* strength, uint8_t* point_num, uint8_t max_point_num)>
Type-safe set of flags from a scoped enum.
static constexpr gpio nc()
Returns a GPIO representing "not connected".
Abstract base class for touch controllers.
virtual esp_lcd_touch_handle_t idf_handle() const =0
Returns the underlying ESP-IDF handle.
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.
Configuration structure for touch controllers.
unsigned int mirror_y
Mirror Y after read coordinates.
process_coordinates_callback process_coordinates
struct idfxx::lcd::touch::config::@2 levels
uint16_t y_max
Y coordinates max (for mirroring)
unsigned int interrupt
Active Level of interrupt pin.
unsigned int reset
Level of reset pin in reset.
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