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:

Go to the source code of this file.

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

Definition at line 35 of file touch.c.

Variable Documentation

TOUCH_AREA_STRUCT* areas[NUM_AREAS] = {NULL}

Definition at line 36 of file touch.c.

int cal_dx = 100

Definition at line 46 of file touch.c.

int cal_dy = 100

Definition at line 48 of file touch.c.

int cal_xs = 10

Definition at line 45 of file touch.c.

int cal_ys = 10

Definition at line 47 of file touch.c.

volatile bool calibration = false

Definition at line 40 of file touch.c.

volatile TOUCH_STATE oldState = TOUCH_UP

Definition at line 39 of file touch.c.

volatile POINT_STRUCT pos

Definition at line 38 of file touch.c.

bool use_calibration = false

Definition at line 42 of file touch.c.