Rabbit OP7100 User Manual Page 114

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 113
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);
Page view 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 171 172

Comments to this Manuals

No comments