108
eDisplay (OP7200)
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 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 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 060831 J...
Page 6: ...eDisplay OP7200...
Page 14: ...8 eDisplay OP7200...
Page 22: ...16 eDisplay OP7200...
Page 52: ...46 eDisplay OP7200...
Page 126: ...120 eDisplay OP7200...
Page 132: ...126 eDisplay OP7200...
Page 152: ...146 eDisplay OP7200...
Page 168: ...162 eDisplay OP7200...
Page 172: ...166 eDisplay OP7200...
Page 174: ......