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
 X coordinates max (for mirroring)
 
uint16_t y_max
 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.
 
struct { 
 
   unsigned int   reset: 1 = 0 
 Level of reset pin in reset. More...
 
   unsigned int   interrupt: 1 = 0 
 Active Level of interrupt pin. More...
 
levels = {} 
 
struct { 
 
   unsigned int   swap_xy: 1 = 0 
 Swap X and Y after read coordinates. More...
 
   unsigned int   mirror_x: 1 = 0 
 Mirror X after read coordinates. More...
 
   unsigned int   mirror_y: 1 = 0 
 Mirror Y after read coordinates. More...
 
flags = {} 
 Callback to apply user adjustments after reading coordinates from the touch controller.
 
process_coordinates_callback process_coordinates = nullptr
 

Detailed Description

Configuration structure for touch controllers.

Definition at line 46 of file touch.hpp.

Member Data Documentation

◆ [struct]

struct { ... } idfxx::lcd::touch::config::flags

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

◆ int_gpio

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

GPIO number of interrupt pin.

Definition at line 51 of file touch.hpp.

◆ interrupt

unsigned int idfxx::lcd::touch::config::interrupt

Active Level of interrupt pin.

Definition at line 55 of file touch.hpp.

◆ [struct]

struct { ... } idfxx::lcd::touch::config::levels

◆ mirror_x

unsigned int idfxx::lcd::touch::config::mirror_x

Mirror X after read coordinates.

Definition at line 60 of file touch.hpp.

◆ mirror_y

unsigned int idfxx::lcd::touch::config::mirror_y

Mirror Y after read coordinates.

Definition at line 61 of file touch.hpp.

◆ process_coordinates

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

Definition at line 65 of file touch.hpp.

◆ reset

unsigned int idfxx::lcd::touch::config::reset

Level of reset pin in reset.

Definition at line 54 of file touch.hpp.

◆ rst_gpio

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

GPIO number of reset pin.

Definition at line 50 of file touch.hpp.

◆ swap_xy

unsigned int idfxx::lcd::touch::config::swap_xy

Swap X and Y after read coordinates.

Definition at line 59 of file touch.hpp.

◆ x_max

uint16_t idfxx::lcd::touch::config::x_max

X coordinates max (for mirroring)

Definition at line 47 of file touch.hpp.

◆ y_max

uint16_t idfxx::lcd::touch::config::y_max

Y coordinates max (for mirroring)

Definition at line 48 of file touch.hpp.


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