mikroSDK Reference Manual
stmpe811_t Struct Reference

STMPE811 Context Object. More...

Data Fields

i2c_master_t i2c
 
digital_in_t int_pin
 
tp_event_t press_det
 
tp_touch_item_t touch
 
tp_event_t gesture
 
bool pen_down
 
uint16_t width
 
uint16_t height
 
uint8_t press_threshold
 
stmpe811_calibration_data_t calibration_data
 

Detailed Description

Context object definition for STMPE811 touch controller. This structure holds information about the current state of the controller.

Note
Changing values inside this structure is not recomended as it can cause unwanted and incorrect behaviour when used with stmpe811_process function.

Field Documentation

◆ i2c

i2c_master_t stmpe811_t::i2c

Communication module object.

◆ int_pin

digital_in_t stmpe811_t::int_pin

Interrupt pin object.

◆ press_det

tp_event_t stmpe811_t::press_det

Touch pressure event.

◆ touch

tp_touch_item_t stmpe811_t::touch

Touch item.

◆ gesture

tp_event_t stmpe811_t::gesture

Gesture event.

◆ pen_down

bool stmpe811_t::pen_down

Utility helper variable used for interpreting events.

◆ width

uint16_t stmpe811_t::width

Touch panel width in pixels.

◆ height

uint16_t stmpe811_t::height

Touch panel height in pixels.

◆ press_threshold

uint8_t stmpe811_t::press_threshold

Press intensity needed to register touch event.

◆ calibration_data

stmpe811_calibration_data_t stmpe811_t::calibration_data

Calibration constants used for converting raw ADC touch data to actual pixel coordinates.