23 #include "calibrate.h"
41 #define TOUCH_BUSY_PRESSED 1
42 #define TOUCH_BUSY_CHECK 2
43 #define TOUCH_BUSY_SCAN 3
63 #define TOUCH_INIT_DEFAULT \
void TOUCH_Init(TOUCH_Config_TypeDef *config)
Initialize touch panel driver.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
int TOUCH_IsBusy(void)
Check status of the touch panel.
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.
Analog to Digital Converter (ADC) peripheral API.
void( TOUCH_Upcall_TypeDef)(TOUCH_Pos_TypeDef *)
int TOUCH_CalibrationTable(POINT *displayPtr, POINT *screenPtr)
Set calibration table.
ADC_OvsRateSel_TypeDef oversampling