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

Macros

#define NUM_AREAS   50
 

Functions

bool touch_init ()
 
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
 

Macro Definition Documentation

#define NUM_AREAS   50

Variable Documentation

TOUCH_AREA_STRUCT* areas[NUM_AREAS] = {NULL}
volatile TOUCH_STATE oldState =TOUCH_UP
volatile POINT_STRUCT pos