![](/media/cache/profiles/fa7518562603d5c4a7ad69e2e5726f5f.50x50_q85.jpg)
Real Time FIR Filter - Distinctive Excellence award winner :)
Diff: touchpad.h
- Revision:
- 0:b3e50e98acac
diff -r 000000000000 -r b3e50e98acac touchpad.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/touchpad.h Sat Aug 13 17:35:52 2011 +0000 @@ -0,0 +1,42 @@ + +#ifndef TOUCHPAD_H_ +#define TOUCHPAD_H_ + +#include "mbed.h" +#include "cr_dsplib.h" + +/* Debido a la linealidad del touchscreen, la posicion Y va de 0 a 6 y la posicion X va de 0 a 5 */ +/* Esto se debe corregir en futuras revisiones mediante una calibracion del touchscreen */ + +/* Configuracion del touchpad */ +/* + * AD0.4 OPEN-DRAIN OPEN-DRAIN AD0.5 + * P1[30] P2[0] P2[1] P1[31] + * | | | | + * | _____________|______________ | | + * | | | | | + * | | | | | + * |__________| Touchpad |________| | + * | | | + * | | | + * |____________________________| | + * | | + * |______________________________________| + */ + +/************************************DEFINICIONES DE TIPOS********************************************/ +/*Estructura de la posicion actual del dedo*/ +typedef struct +{ + uint32_t pos_x; /*Coordenada X*/ + uint32_t pos_y; /*Coordenada Y*/ + +} touchpad_position; + +/************************************DEFINICIONES DE FUNCIONES*****************************************/ + +touchpad_position get_position(void); /*Funcion para obtencion de coordendas actuales del dedo en el touchpad*/ + +void init_touchpad(void); + +#endif /* TOUCHPAD_H_ */