172 uint16_t coord_x_max;
173 uint16_t coord_y_max;
void tp_rotate(tp_t *ctx, tp_rotate_t rotate)
Touch Panel Rotate Function.
tp_err_t tp_init(tp_t *ctx, tp_cfg_t *cfg, tp_drv_t *drv, void *drv_ctx)
Touch Panel Initialization Function.
tp_event_t tp_press_detect(tp_t *ctx)
Touch Panel Pressure Detector Function.
void tp_get_size(tp_t *ctx, uint16_t *width, uint16_t *height)
Touch Panel Size Check Function.
tp_err_t tp_press_coordinates(tp_t *ctx, tp_touch_coord_t *touch_item)
Touch Panel Pressure Coordinates Check Function.
void tp_cfg_setup(tp_cfg_t *cfg)
Touch Panel Configuration Function.
tp_rotate_t tp_get_orientation(tp_t *ctx)
Touch Panel Orientation Check Function.
void tp_press_callback_setup(tp_t *ctx, tp_press_callback_t cb)
Touch Panel Callback Setup Function.
tp_err_t tp_process(tp_t *ctx)
Touch Panel Process Function.
Touch Panel Size And Placement Configuration Object.
Definition tp.h:212
Touch Panel Driver Interface Items.
Definition tp.h:199
Touch Panel Context Object.
Definition tp.h:224
tp_touch_coord_t touch
Definition tp.h:179
tp_touch_coord_t touch_prev
Definition tp.h:180
tp_touch_coord_t touch_prev_mirr
Definition tp.h:181
Touch Point Object Definition.
Definition tp.h:137
uint16_t tp_coord_t
Touch Point Coordinates Data Type.
Definition tp.h:130
tp_event_t
Touch Panel Event Code Definition.
Definition tp.h:81
tp_err_t
Touch Panel Error Code Definition.
Definition tp.h:65
tp_rotate_t
Touch Panel Placement (Orientation) Definition.
Definition tp.h:117
tp_touch_id_t
Touch Point ID Definition.
Definition tp.h:102
@ TP_TOUCH_ID_0
Definition tp.h:103
tp_event_t(* tp_press_det_t)(void *)
Touch Panel Driver Interface Definition.
Definition tp.h:118
tp_err_t(* tp_process_t)(void *)
Touch Panel Driver Interface Definition.
Definition tp.h:130
uint16_t tp_coord_t
Touch Point Coordinates Data Type.
Definition tp.h:101
tp_event_t
Touch Panel Event Code Definition.
Definition tp.h:69
@ TP_EVENT_PRESS_NOT_DET
Definition tp.h:73
@ TP_EVENT_PRESS_DOWN
Definition tp.h:70
@ TP_EVENT_PRESS_MOVE
Definition tp.h:72
@ TP_EVENT_PRESS_DET
Definition tp.h:74
@ TP_EVENT_PRESS_UP
Definition tp.h:71
tp_err_t
Touch Panel Error Code Definition.
Definition tp.h:57
@ TP_ERR_INIT_DRV
Definition tp.h:59
@ TP_ERR_UNSUPPORTED_PIN
Definition tp.h:60
@ TP_ERR_SIZE
Definition tp.h:61
@ TP_ERR_PRESS_COORD
Definition tp.h:62
@ TP_OK
Definition tp.h:58
void(* tp_press_coord_t)(void *, tp_touch_coord_t *)
Touch Panel Driver Interface Definition.
Definition tp.h:124
void(* tp_press_callback_t)(tp_event_t, tp_coord_t, tp_coord_t, tp_touch_id_t)
Touch Panel Touch Callback Function.
Definition tp.h:136
tp_rotate_t
Touch Panel Placement (Orientation) Definition.
Definition tp.h:89
@ TP_ROTATE_270
Definition tp.h:93
@ TP_ROTATE_180
Definition tp.h:92
@ TP_ROTATE_90
Definition tp.h:91
@ TP_ROTATE_0
Definition tp.h:90
tp_touch_id_t
Touch Point ID Definition.
Definition tp.h:81