gt911.h 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-01-13 RiceChen the first version
  9. */
  10. #ifndef __GT911_H__
  11. #define __GT911_H__
  12. #include "touch.h"
  13. #define GT911_ADDR_LEN 2
  14. #define GT911_REGITER_LEN 2
  15. #define GT911_MAX_TOUCH 5
  16. #define GT911_POINT_INFO_NUM 1
  17. #define GT911_ADDRESS_HIGH 0x5D
  18. #define GT911_ADDRESS_LOW 0x14
  19. #define GT911_COMMAND_REG 0x8040
  20. #define GT911_CONFIG_REG 0x8047
  21. #define GT911_PRODUCT_ID 0x8140
  22. #define GT911_VENDOR_ID 0x814A
  23. #define GT911_READ_STATUS 0x814E
  24. #define GT911_POINT1_REG 0x814F
  25. #define GT911_POINT2_REG 0x8157
  26. #define GT911_POINT3_REG 0x815F
  27. #define GT911_POINT4_REG 0x8167
  28. #define GT911_POINT5_REG 0x816F
  29. #define GT911_CHECK_SUM 0x80FF
  30. int rt_hw_gt911_init(const char *name, struct rt_touch_config *cfg);
  31. #endif /* gt911.h */