STemWin
CALIB_RES
is only used within STemWin.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
STemWin
CALIB_RES
CALIB_RES macro
Syntax
from
k_calibration.c:32
#define
CALIB_RES
(
val
,
pte1
,
ptm1
,
pte2
,
ptm2
)
(
(
(
(
val
-
ptm2
)
*
(
pte1
-
pte2
)
)
/
(
ptm1
-
ptm2
)
)
+
pte2
)
Arguments
val
pte1
ptm1
pte2
ptm2
References
Location
Text
k_calibration.c:32
#define
CALIB_RES
(
val
,
pte1
,
ptm1
,
pte2
,
ptm2
)
(
(
(
(
val
-
ptm2
)
*
(
pte1
-
pte2
)
)
/
(
ptm1
-
ptm2
)
)
+
pte2
)
k_calibration.c:281
int32_t
ret
=
CALIB_RES
(
x
,
20
,
data1
.
b
.
A1
,
220
,
data1
.
b
.
B1
)
;
k_calibration.c:294
int32_t
ret
=
CALIB_RES
(
y
,
20
,
data2
.
b
.
A2
,
220
,
data2
.
b
.
B2
)
;