HID_Standalone
CALIB_RES
is only used within HID_Standalone.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
HID_Standalone
CALIB_RES
CALIB_RES macro
Syntax
from
ts_calibration.c:31
#define
CALIB_RES
(
val
,
pte1
,
ptm1
,
pte2
,
ptm2
)
(
(
(
(
val
-
ptm2
)
*
(
pte1
-
pte2
)
)
/
(
ptm1
-
ptm2
)
)
+
pte2
)
Arguments
val
pte1
ptm1
pte2
ptm2
References
Location
Text
ts_calibration.c:31
#define
CALIB_RES
(
val
,
pte1
,
ptm1
,
pte2
,
ptm2
)
(
(
(
(
val
-
ptm2
)
*
(
pte1
-
pte2
)
)
/
(
ptm1
-
ptm2
)
)
+
pte2
)
ts_calibration.c:238
int32_t
ret
=
CALIB_RES
(
x
,
aLogX
[
0
]
,
aPhysX
[
0
]
,
aLogX
[
1
]
,
aPhysX
[
1
]
)
;
ts_calibration.c:251
int32_t
ret
=
CALIB_RES
(
y
,
aLogY
[
0
]
,
aPhysY
[
0
]
,
aLogY
[
1
]
,
aPhysY
[
1
]
)
;