idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::lcd::touch::config Struct Reference

Configuration structure for touch controllers. More...

Public Attributes

uint16_t x_max = 0
 X coordinates max (for mirroring)
 
uint16_t y_max = 0
 Y coordinates max (for mirroring)
 
gpio rst_gpio = gpio::nc()
 GPIO number of reset pin.
 
gpio int_gpio = gpio::nc()
 GPIO number of interrupt pin.
 
gpio::level reset_level = gpio::level::low
 Level of reset pin in reset.
 
gpio::level interrupt_level = gpio::level::low
 Active level of interrupt pin.
 
bool swap_xy = false
 Swap X and Y after read coordinates.
 
bool mirror_x = false
 Mirror X after read coordinates.
 
bool mirror_y = false
 Mirror Y after read coordinates.
 
process_coordinates_callback process_coordinates = nullptr
 Callback to apply user adjustments after reading coordinates from the touch controller.
 

Detailed Description

Configuration structure for touch controllers.

All fields have sensible defaults, but you must define x_max and y_max at minimum.

Definition at line 53 of file touch.hpp.

Member Data Documentation

◆ int_gpio

gpio idfxx::lcd::touch::config::int_gpio = gpio::nc()

GPIO number of interrupt pin.

Definition at line 58 of file touch.hpp.

◆ interrupt_level

gpio::level idfxx::lcd::touch::config::interrupt_level = gpio::level::low

Active level of interrupt pin.

Definition at line 61 of file touch.hpp.

◆ mirror_x

bool idfxx::lcd::touch::config::mirror_x = false

Mirror X after read coordinates.

Definition at line 64 of file touch.hpp.

◆ mirror_y

bool idfxx::lcd::touch::config::mirror_y = false

Mirror Y after read coordinates.

Definition at line 65 of file touch.hpp.

◆ process_coordinates

process_coordinates_callback idfxx::lcd::touch::config::process_coordinates = nullptr

Callback to apply user adjustments after reading coordinates from the touch controller.

Definition at line 68 of file touch.hpp.

◆ reset_level

gpio::level idfxx::lcd::touch::config::reset_level = gpio::level::low

Level of reset pin in reset.

Definition at line 60 of file touch.hpp.

◆ rst_gpio

gpio idfxx::lcd::touch::config::rst_gpio = gpio::nc()

GPIO number of reset pin.

Definition at line 57 of file touch.hpp.

◆ swap_xy

bool idfxx::lcd::touch::config::swap_xy = false

Swap X and Y after read coordinates.

Definition at line 63 of file touch.hpp.

◆ x_max

uint16_t idfxx::lcd::touch::config::x_max = 0

X coordinates max (for mirroring)

Definition at line 54 of file touch.hpp.

◆ y_max

uint16_t idfxx::lcd::touch::config::y_max = 0

Y coordinates max (for mirroring)

Definition at line 55 of file touch.hpp.


The documentation for this struct was generated from the following file: