touch.h 364 B

123456789101112131415161718192021
  1. #ifndef __TOUCH_H__
  2. #define __TOUCH_H__
  3. #include <rtthread.h>
  4. #define RT_TOUCH_NORMAL 0
  5. #define RT_TOUCH_CALIBRATION_DATA 1
  6. #define RT_TOUCH_CALIBRATION 2
  7. struct calibration_data
  8. {
  9. rt_uint16_t min_x, max_x;
  10. rt_uint16_t min_y, max_y;
  11. };
  12. typedef void (*rt_touch_calibration_func_t)(rt_uint16_t x, rt_uint16_t y);
  13. void rtgui_touch_hw_init(void);
  14. #endif