User’s Manual
93
The
TS_R4096.LIB
library in the
TouchScreens
directory provides low-level touch-
screen function calls.
Calibrates the touchscreen as a linear function using the two sets of x,y coordinates provided. Gain and
offset constants are calculated and placed into the global table
_adcCalibTS
.
PARAMETERS
x1
is the x coordinate of the upper left-hand corner of the touchscreen
y1
is the y coordinate of the upper left-hand corner of the touchscreen
x2
is the x coordinate of the lower right-hand corner of the touchscreen
y2
is the y coordinate of the lower right-hand corner of the touchscreen
RETURN VALUE
0 if sucessful
-1 if not able to make calibration constants
SEE ALSO
TsCalibEERd, TsCalibEEWr, TsXYvector, brdInit
Reads the calibration constants, gain, and offset from the simulated EEPROM in flash. The constants are
stored in the the top 1K of the reserved user block memory area. Use the sample program
USERBLOCKINFOR.C
in
SAMPLES\OP7200
to get the addresses reserved for the calibration data
constants and the addresses available for use by your application program.
RETURN VALUE
0 if sucessful
-1 if invalid address or range
SEE ALSO
TsCalib, TsCalibEEWr, TsXYvector, brdInit
Writes the calibration constants, gain, and offset to the simulated EEPROM in flash. The constants are
stored in the the top 1K of the reserved user block memory area. Use the sample program
USERBLOCKINFOR.C
in
SAMPLES\OP7200
to get the addresses reserved for the calibration data
constants and the addresses available for use by your application program.
RETURN VALUE
0 if sucessful
-1 if invalid address or range
SEE ALSO
TsCalib, TsCalibEERd, TsXYvector, brdInit
int TsCalib(int x1, int y1, int x2, int y2);
int TsCalibEERd(void);
int TsCalibEEWr(void);
Summary of Contents for eDisplay OP7200
Page 1: ...eDisplay OP7200 VGA Operator Control Panel User s Manual 019 0116 021001 A ...
Page 6: ...eDisplay OP7200 ...
Page 44: ...38 eDisplay OP7200 ...
Page 128: ...122 eDisplay OP7200 ...
Page 136: ...130 eDisplay OP7200 ...
Page 144: ...138 eDisplay OP7200 ...
Page 146: ...140 eDisplay OP7200 ...
Page 150: ...144 eDisplay OP7200 ...
Page 152: ......