mikroSDK Reference Manual
tsc2003_t Struct Reference

TSC2003 Context Object. More...

Data Fields

digital_in_t int_pin
 
i2c_master_t i2c
 
uint16_t width
 
uint16_t height
 
tp_event_t press_det
 
tp_touch_item_t touch
 
tp_event_t gesture
 
bool pen_down
 
tsc2003_bits_m resolution
 
tsc2003_bits_pd power_down
 
tsc2003_pressure_threshold_t pressure_threshold_level
 
tsc2003_calibration_data_t calibration_data
 

Detailed Description

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

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

Field Documentation

◆ int_pin

digital_in_t tsc2003_t::int_pin

Interrupt pin object.

◆ i2c

i2c_master_t tsc2003_t::i2c

Communication module object.

◆ width

uint16_t tsc2003_t::width

Touch panel width in pixels.

◆ height

uint16_t tsc2003_t::height

Touch panel height in pixels.

◆ press_det

tp_event_t tsc2003_t::press_det

Touch pressure event.

◆ touch

tp_touch_item_t tsc2003_t::touch

Touch item.

◆ gesture

tp_event_t tsc2003_t::gesture

Gesture event.

◆ pen_down

bool tsc2003_t::pen_down

Utility helper variable used for interpreting events.

◆ resolution

tsc2003_bits_m tsc2003_t::resolution

AD conversion resolution.

◆ power_down

tsc2003_bits_pd tsc2003_t::power_down

Power down state between AD conversions.

◆ pressure_threshold_level

tsc2003_pressure_threshold_t tsc2003_t::pressure_threshold_level

Press intensity needed to register touch event.

◆ calibration_data

tsc2003_calibration_data_t tsc2003_t::calibration_data

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