Microchip® Advanced Software Framework

rtouch.h File Reference
#include <stdint.h>
#include <stdbool.h>

Data Structures

struct  rtouch_calibration_matrix_struct
 Calibration matrix coefficients, computed from three calibration points. More...
 
struct  rtouch_calibration_point_struct
 Info for one calibration point, raw samples and actual panel position. More...
 
struct  rtouch_calibration_points_struct
 Collection of the three calibration points required to compute calibration. More...
 
struct  rtouch_event_struct
 User-friendly touch event structure. More...
 

Typedefs

typedef struct
rtouch_calibration_matrix_struct 
rtouch_calibration_matrix_t
 Calibration matrix coefficients, computed from three calibration points. More...
 
typedef struct
rtouch_calibration_point_struct 
rtouch_calibration_point_t
 Info for one calibration point, raw samples and actual panel position. More...
 
typedef struct
rtouch_calibration_points_struct 
rtouch_calibration_points_t
 Collection of the three calibration points required to compute calibration. More...
 
typedef void(* rtouch_event_handler_t )(rtouch_event_t const *event)
 Type definition for a user touch event callback function. More...
 
typedef struct rtouch_event_struct rtouch_event_t
 User-friendly touch event structure. More...
 
typedef enum rtouch_event_type_enum rtouch_event_type_t
 Event type used by event struct rtouch_event_t. More...
 

Enumerations

enum  rtouch_event_type_enum {
  RTOUCH_NO_EVENT,
  RTOUCH_PRESS,
  RTOUCH_MOVE,
  RTOUCH_RELEASE
}
 Event type used by event struct rtouch_event_t. More...
 

Functions

void rtouch_compute_calibration_matrix (rtouch_calibration_points_t const *points, rtouch_calibration_matrix_t *matrix)
 Compute a raw coordinate to screen coordinate calibration matrix. More...
 
void rtouch_disable (void)
 Disables the resistive touch screen driver. More...
 
void rtouch_enable (void)
 Enables touch detection of the driver once initialized. More...
 
void rtouch_get_calibration_matrix (rtouch_calibration_matrix_t *destination)
 Gets the currently set touch driver calibration matrix. More...
 
void rtouch_get_event (rtouch_event_t *event)
 Retrieve the last touch event. More...
 
rtouch_event_handler_t rtouch_get_event_handler (void)
 Gets the currently set touch screen event handler callback function. More...
 
void rtouch_init (void)
 
bool rtouch_is_touched (void)
 Determine if the screen is currently being touched. More...
 
void rtouch_set_calibration_matrix (rtouch_calibration_matrix_t const *source)
 Set the touch driver calibration matrix. More...
 
void rtouch_set_event_handler (rtouch_event_handler_t handler)
 Set the touch screen event handler callback function. More...