summaryrefslogtreecommitdiff
path: root/bsp/nuvoton/libraries/nu_packages/ADC_TOUCH/adc_touch.h
blob: 91dda39cf671b83ccf76cd6be7c1e2a3912e1c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**************************************************************************//**
*
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date            Author       Notes
* 2022-2-21       Wayne        First version
*
******************************************************************************/

#ifndef __ADC_TOUCH_CALIBRATE_H__
#define __ADC_TOUCH_CALIBRATE_H__

#include <stdint.h>

#define DEF_CAL_POINT_NUM    5

typedef struct
{
    int32_t   x;
    int32_t   y;
} S_COORDINATE_POINT;

typedef struct
{
    int32_t   a;
    int32_t   b;
    int32_t   c;
    int32_t   d;
    int32_t   e;
    int32_t   f;
    int32_t   div;
} S_CALIBRATION_MATRIX;

#endif /* __ADC_TOUCH_CALIBRATE_H__ */