mikroSDK Reference Manual
tp_t Struct Reference

Touch Panel Context Object. More...

Data Fields

tp_drv_ttp_drv
 
void * tp_drv_ctx
 
tp_press_callback_t press_callback_f
 
tp_gesture_callback_t gesture_callback_f
 
uint16_t width
 
uint16_t height
 
uint16_t coord_x_max
 
uint16_t coord_y_max
 
tp_rotate_t start_pos
 
uint8_t curr_pos
 
tp_rotate_t rotate
 
tp_touch_item_t touch
 
tp_event_t gesture
 
tp_touch_item_t touch_prev
 
tp_event_t gesture_prev
 
tp_touch_item_t touch_prev_mirr
 
uint8_t release
 

Detailed Description

Specified context object defined for Touch Panel library.

Field Documentation

◆ tp_drv

tp_drv_t* tp_t::tp_drv

Driver (interface) pointer.

◆ tp_drv_ctx

void* tp_t::tp_drv_ctx

Driver context pointer.

◆ press_callback_f

tp_press_callback_t tp_t::press_callback_f

Callback function handler.

◆ gesture_callback_f

tp_gesture_callback_t tp_t::gesture_callback_f

Callback function handler.

◆ width

uint16_t tp_t::width

Panel width.

◆ height

uint16_t tp_t::height

Panel height.

◆ coord_x_max

uint16_t tp_t::coord_x_max

Panel maximal x coordinate.

◆ coord_y_max

uint16_t tp_t::coord_y_max

Panel maximal y coordinate.

◆ start_pos

tp_rotate_t tp_t::start_pos

Panel start position.

◆ curr_pos

uint8_t tp_t::curr_pos

Panel current position.

◆ rotate

tp_rotate_t tp_t::rotate

Panel rotation.

◆ touch

tp_touch_item_t tp_t::touch

Touch point item.

◆ gesture

tp_event_t tp_t::gesture

Gesture event.

◆ touch_prev

tp_touch_item_t tp_t::touch_prev

Touch point previous data.

◆ gesture_prev

tp_event_t tp_t::gesture_prev

Gesture previous event.

◆ touch_prev_mirr

tp_touch_item_t tp_t::touch_prev_mirr

Touch point mirrored data.

◆ release

uint8_t tp_t::release

Touch release detector.