Resistive Touch Service.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | rtouch_calibration_point_struct |
Storage structure for calibration point (actual and raw positions). More... | |
struct | rtouch_calibration_points_struct |
Collection of the five calibration points required to compute calibration. More... | |
struct | rtouch_event_struct |
User touch event structure. More... | |
struct | rtouch_point_struct |
Point definition. More... | |
Typedefs | |
typedef struct rtouch_calibration_point_struct | rtouch_calibration_point_t |
Storage structure for calibration point (actual and raw positions). More... | |
typedef struct rtouch_calibration_points_struct | rtouch_calibration_points_t |
Collection of the five calibration points required to compute calibration. More... | |
typedef void(* | rtouch_event_handler_t )(rtouch_event_t const *event) |
typedef struct rtouch_event_struct | rtouch_event_t |
User touch event structure. More... | |
typedef enum rtouch_event_type_enum | rtouch_event_type_t |
Touch events enumeration. More... | |
typedef struct rtouch_point_struct | rtouch_point_t |
Point definition. More... | |
Enumerations | |
enum | rtouch_event_type_enum { RTOUCH_PRESS, RTOUCH_MOVE, RTOUCH_RELEASE } |
Touch events enumeration. More... | |
Functions | |
uint32_t | rtouch_compute_calibration (rtouch_calibration_point_t *points) |
Perform the calibration process using the provided points. More... | |
void | rtouch_disable (void) |
Disable the resistive touch service. More... | |
void | rtouch_enable (void) |
Enable the resistive touch service for touch detection and sampling. More... | |
rtouch_event_handler_t | rtouch_get_event_handler (void) |
Get the touch event handler. More... | |
uint32_t | rtouch_init (const uint32_t ul_width, const uint32_t ul_height) |
Initialize the resistive touch service. More... | |
void | rtouch_process (void) |
Core function for resistive touch service. More... | |
void | rtouch_set_calibration_parameter (int32_t xslope, int32_t yslope, int32_t rawx, int32_t rawy) |
Set calibration parameters when manual calibration procedure is not performed. More... | |
void | rtouch_set_event_handler (rtouch_event_handler_t handler) |
Set the touch event handler. More... | |
void | rtouch_wait_pressed (void) |
Wait touch pressed. More... | |
void | rtouch_wait_released (void) |
Wait touch released. More... | |