discoverpixy
Macros | Functions | Variables
touch.c File Reference
#include "touch.h"
#include "ll_touch.h"
#include "screen_calibrate.h"
#include <stdio.h>
Include dependency graph for touch.c:

Macros

#define NUM_AREAS   50
 

Functions

void touch_set_calibration_values (int xs, int dx, int ys, int dy)
 
bool touch_init ()
 
void touch_set_value_convert_mode (bool uc)
 
bool touch_add_raw_event (uint16_t touchX, uint16_t touchY, TOUCH_STATE state)
 
bool touch_have_empty (unsigned char num)
 
bool touch_register_area (TOUCH_AREA_STRUCT *area)
 
void touch_unregister_area (TOUCH_AREA_STRUCT *area)
 
POINT_STRUCT touch_get_last_point ()
 

Variables

TOUCH_AREA_STRUCTareas [NUM_AREAS] = {NULL}
 
volatile POINT_STRUCT pos
 
volatile TOUCH_STATE oldState =TOUCH_UP
 
volatile bool calibration = false
 
bool use_calibration =false
 
int cal_xs =10
 
int cal_dx =100
 
int cal_ys =10
 
int cal_dy =100
 

Macro Definition Documentation

#define NUM_AREAS   50

Variable Documentation

TOUCH_AREA_STRUCT* areas[NUM_AREAS] = {NULL}
int cal_dx =100
int cal_dy =100
int cal_xs =10
int cal_ys =10
volatile bool calibration = false
volatile TOUCH_STATE oldState =TOUCH_UP
volatile POINT_STRUCT pos
bool use_calibration =false