CALIB_RES is only used within HID_Standalone.
 
Symbols
loading...
Files
loading...

CALIB_RES macro

Syntax

#define CALIB_RES(val,pte1,ptm1,pte2,ptm2) ((((val-ptm2)*(pte1-pte2))/(ptm1-ptm2))+pte2)

Arguments

val

pte1

ptm1

pte2

ptm2

References

LocationText
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]);