mikroSDK Reference Manual
tp_mikroe_t Struct Reference

TP_MIKROE Context Object. More...

Data Fields

pin_name_t left
 
pin_name_t right
 
pin_name_t up
 
pin_name_t down
 
analog_in_t analog_in_x
 
analog_in_t analog_in_y
 
tp_event_t press_det
 
tp_touch_coord_t touch
 
tp_event_t gesture
 
tp_rotate_t rotate
 
bool pen_down
 
tp_mikroe_pressure_threshold_t pressure_threshold_level
 
tp_mikroe_calibration_data_t calibration_data
 
uint16_t width
 
uint16_t height
 

Detailed Description

Context object definition for TP_MIKROE touch controller.

Field Documentation

◆ left

pin_name_t tp_mikroe_t::left

TP XL Pin.

◆ right

pin_name_t tp_mikroe_t::right

TP XR Pin.

◆ up

pin_name_t tp_mikroe_t::up

TP YU Pin.

◆ down

pin_name_t tp_mikroe_t::down

TP YD Pin.

◆ analog_in_x

analog_in_t tp_mikroe_t::analog_in_x

ADC context structure.

◆ analog_in_y

analog_in_t tp_mikroe_t::analog_in_y

ADC context structure.

◆ press_det

tp_event_t tp_mikroe_t::press_det

Touch pressure event.

◆ touch

tp_touch_coord_t tp_mikroe_t::touch

Touch item.

◆ gesture

tp_event_t tp_mikroe_t::gesture

Gesture event.

◆ rotate

tp_rotate_t tp_mikroe_t::rotate

Panel rotation.

◆ pen_down

bool tp_mikroe_t::pen_down

Utility helper variable used for interpreting events.

◆ pressure_threshold_level

tp_mikroe_pressure_threshold_t tp_mikroe_t::pressure_threshold_level

Press intensity needed to register touch event.

◆ calibration_data

tp_mikroe_calibration_data_t tp_mikroe_t::calibration_data

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

◆ width

uint16_t tp_mikroe_t::width

Touch panel width in pixels.

◆ height

uint16_t tp_mikroe_t::height

Touch panel height in pixels.