General touch driver. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | touch_point |
| Panel coordinate and measurement data of a single touch. More... | |
| struct | touch_calibration_matrix |
| Calibration matrix coefficients. More... | |
| struct | touch_event |
| Contains touch event type and touch point data. More... | |
Defines | |
| #define | TOUCH_NR_CALIBRATION_POINTS 3 |
| Number of calibration points needed for driver. | |
Typedefs | |
| typedef struct touch_point | touch_calibration_points_t [TOUCH_NR_CALIBRATION_POINTS] |
| Array to hold calibration points. | |
| typedef void(* | touch_event_handler_t )(const struct touch_event *event) |
| Pointer to touch event handler function. | |
Enumerations | |
| enum | touch_event_types |
Enumeration of different touch event types for the touch_event struct. More... | |
Functions | |
| void | touch_init (void) |
| Initialize the touch driver. | |
| void | touch_enable (void) |
| Enable touch detection and sampling. | |
| void | touch_disable (void) |
| Disable touch detection and sampling. | |
| void | touch_get_event (struct touch_event *buffer) |
| Get last detected touch event from driver to buffer. | |
| bool | touch_is_touched (void) |
| Return current state of touch driver. | |
| void | touch_set_calibration_matrix (const struct touch_calibration_matrix *matrix) |
| Assign a calibration matrix to the driver. | |
| void | touch_get_calibration_matrix (struct touch_calibration_matrix *buffer) |
| Copy calibration matrix from driver to a buffer. | |
| void | touch_compute_calibration_matrix (const touch_calibration_points_t points, struct touch_calibration_matrix *matrix) |
| Compute a calibration matrix. | |
| void | touch_set_event_handler (touch_event_handler_t handler) |
| Set touch event handler for driver. | |
| touch_event_handler_t | touch_get_event_handler (void) |
| Get current touch event handler from driver. | |
General touch driver.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file touch.h.
1.6.3