touch.h 552 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-12-30 Sundm75 first version
  9. */
  10. #ifndef __TOUCH_H__
  11. #define __TOUCH_H__
  12. #define RT_TOUCH_NORMAL 0
  13. #define RT_TOUCH_CALIBRATION_DATA 1
  14. #define RT_TOUCH_CALIBRATION 2
  15. //#define SAVE_CALIBRATION
  16. rt_uint16_t touch_read_x(void);
  17. rt_uint16_t touch_read_y(void);
  18. void touch_config(void);
  19. rt_err_t rtgui_touch_hw_init(const char * spi_device_name);
  20. #endif