![]() |
Data Structures | |
struct | TOUCH_Pos_TypeDef |
Touch panel position structure. More... | |
struct | TOUCH_Config_TypeDef |
Touch configuration structure. More... | |
Defines | |
#define | TOUCH_INIT_DEFAULT |
Initializes Touch default values. | |
Typedefs | |
typedef void( | TOUCH_Upcall_TypeDef )(TOUCH_Pos_TypeDef *) |
touch panel upcall type definition | |
Functions | |
void | TOUCH_Init (TOUCH_Config_TypeDef *config) |
Initialize touch panel driver. | |
void | TOUCH_RegisterUpcall (TOUCH_Upcall_TypeDef *new_upcall) |
Register upcall which will be call every position or state change. | |
TOUCH_Pos_TypeDef * | TOUCH_GetPos (void) |
Returns current touch position and state. | |
int | TOUCH_CalibrationTable (POINT *displayPtr, POINT *screenPtr) |
Set calibration table. | |
int | TOUCH_IsBusy (void) |
Check status of the touch panel. |
#define TOUCH_INIT_DEFAULT |
typedef void( TOUCH_Upcall_TypeDef)(TOUCH_Pos_TypeDef *) |
int TOUCH_CalibrationTable | ( | POINT * | displayPtr, | |
POINT * | screenPtr | |||
) |
TOUCH_Pos_TypeDef* TOUCH_GetPos | ( | void | ) |
Returns current touch position and state.
Definition at line 363 of file touch.c.
References TOUCH_Pos_TypeDef::adcx, TOUCH_Pos_TypeDef::adcy, TOUCH_Pos_TypeDef::pen, TOUCH_Pos_TypeDef::x, and TOUCH_Pos_TypeDef::y.
void TOUCH_Init | ( | TOUCH_Config_TypeDef * | config | ) |
Initialize touch panel driver.
config | Driver configuration data. |
Definition at line 331 of file touch.c.
References ADC_Y, BSP_PeripheralAccess(), BSP_TOUCH, TOUCH_Config_TypeDef::frequency, TOUCH_Config_TypeDef::ignore, and TOUCH_Config_TypeDef::oversampling.
int TOUCH_IsBusy | ( | void | ) |
void TOUCH_RegisterUpcall | ( | TOUCH_Upcall_TypeDef * | new_upcall | ) |