CCAux  2.20.0.0
CCAux API reference
TouchScreenCalib.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2023 CrossControl AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; with
8  * version 2.1 of the License.
9  */
10 /*
11  * File description:
12  * Touch Screen Calibration interface
13  * Note that the VC platform uses a different touch screen solution which is not supported by this API.
14  *
15  * Use the function GetTouchScreenCalib() to get a handle to pass on to the other functions.
16  * Use the method TouchScreenCalib_release(TOUCHSCREENCALIBHANDLE) to return the handle.
17  *
18  ************************************************/
19 
20 #ifndef CC_TOUCHSCRCALIB_H
21 #define CC_TOUCHSCRCALIB_H
22 
23 #include "CCAuxErrors.h"
24 #include "CCPlatform.h"
25 
26 #ifdef __cplusplus
27 namespace CrossControl
28 {
29 #endif
30 
31 typedef void *TOUCHSCREENCALIBHANDLE;
32 
34 typedef enum
35 {
42 
44 typedef enum
45 {
49  2,
51  3,
53  4,
55  5
57 
74 EXTERN_C
75 CCAUXDLL_API
77 CCAUXDLL_CALLING_CONV
79 
87 EXTERN_C
88 CCAUXDLL_API
90 
100 EXTERN_C
101 CCAUXDLL_API
103 
113 EXTERN_C
114 CCAUXDLL_API
116 
126 EXTERN_C
127 CCAUXDLL_API
129 
140 EXTERN_C
141 CCAUXDLL_API
143  uint8_t pointNr);
144 
155 EXTERN_C
156 CCAUXDLL_API
158  uint16_t *value);
159 
170 EXTERN_C
171 CCAUXDLL_API
173  uint16_t value);
174 
182 EXTERN_C
183 CCAUXDLL_API
185 
187 #ifdef __cplusplus
188 } /* namespace CrossControl */
189 #endif
190 
191 #endif /* CC_TOUCHSCRCALIB_H */
unsigned short uint16_t
Definition: CCAuxTypes.h:38
unsigned char uint8_t
Definition: CCAuxTypes.h:37
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV TouchScreenCalib_release(TOUCHSCREENCALIBHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_setCalibrationPoint(TOUCHSCREENCALIBHANDLE, uint8_t pointNr)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_setConfigParam(TOUCHSCREENCALIBHANDLE, CalibrationConfigParam param, uint16_t value)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_setMode(TOUCHSCREENCALIBHANDLE, CalibrationModeSettings mode)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_getConfigParam(TOUCHSCREENCALIBHANDLE, CalibrationConfigParam param, uint16_t *value)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_checkCalibrationPointFinished(TOUCHSCREENCALIBHANDLE, bool *finished, uint8_t pointNr)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_autoSensorCalib(TOUCHSCREENCALIBHANDLE)
EXTERN_C CCAUXDLL_API TOUCHSCREENCALIBHANDLE CCAUXDLL_CALLING_CONV GetTouchScreenCalib(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreenCalib_getMode(TOUCHSCREENCALIBHANDLE, CalibrationModeSettings *mode)
Definition: About.h:30
CalibrationConfigParam
Definition: TouchScreenCalib.h:45
@ CONFIG_13P_CALIBRATION_TRANSITION_MAX
Definition: TouchScreenCalib.h:54
@ CONFIG_CALIBRATION_MEASUREMENTS
Definition: TouchScreenCalib.h:47
@ CONFIG_CALIBRATION_WITH
Definition: TouchScreenCalib.h:46
@ CONFIG_5P_CALIBRATION_POINT_BORDER
Definition: TouchScreenCalib.h:48
@ CONFIG_13P_CALIBRATION_TRANSITION_MIN
Definition: TouchScreenCalib.h:52
@ CONFIG_13P_CALIBRATION_POINT_BORDER
Definition: TouchScreenCalib.h:50
void * TOUCHSCREENCALIBHANDLE
Definition: TouchScreenCalib.h:31
CalibrationModeSettings
Definition: TouchScreenCalib.h:35
@ MODE_CALIBRATION_13P
Definition: TouchScreenCalib.h:40
@ MODE_CALIBRATION_9P
Definition: TouchScreenCalib.h:39
@ MODE_UNKNOWN
Definition: TouchScreenCalib.h:36
@ MODE_CALIBRATION_5P
Definition: TouchScreenCalib.h:38
@ MODE_NORMAL
Definition: TouchScreenCalib.h:37
eErr
Definition: CCAuxTypes.h:162