adc_touch.h 770 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**************************************************************************//**
  2. *
  3. * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2022-2-21 Wayne First version
  10. *
  11. ******************************************************************************/
  12. #ifndef __ADC_TOUCH_CALIBRATE_H__
  13. #define __ADC_TOUCH_CALIBRATE_H__
  14. #include <stdint.h>
  15. #define DEF_CAL_POINT_NUM 5
  16. typedef struct
  17. {
  18. int32_t x;
  19. int32_t y;
  20. } S_COORDINATE_POINT;
  21. typedef struct
  22. {
  23. int32_t a;
  24. int32_t b;
  25. int32_t c;
  26. int32_t d;
  27. int32_t e;
  28. int32_t f;
  29. int32_t div;
  30. } S_CALIBRATION_MATRIX;
  31. #endif /* __ADC_TOUCH_CALIBRATE_H__ */