Chapter 7 - CTKERN
CARROLL TOUCH
7-20
Touch System Programmer’s Guide
CALIB.DAT
The calibration data file (default
CALIB.DAT
) has the following
format:
Carroll Touch Calibration Data File
<video mode> <flags> <xres> <yres> <xoff> <yoff> <xspan> <yspan>
<video mode> <flags> <xres> <yres> <xoff> <yoff> <xspan> <yspan>
<video mode> <flags> <xres> <yres> <xoff> <yoff> <xspan> <yspan>
. . .
All of the parameters except for the video mode and the flags are saved
in decimal. The video mode and the flags are saved in hexadecimal. An
example of a calibration data file is:
Carroll Touch Calibration Data File
0003 8001 00080 00025 00002 00003 00072 00058
0010 0000 00640 00350 00003 00005 00070 00056
0012 0000 00640 00480 00002 00004 00068 00059
Decimal entries are five characters long, and hexadecimal entries are
four characters long. The spacing between entries serves to organize
them into groups. CTKERN and
CALIB.EXE
read
CALIB.DAT
with
any spacing (white space independent), but
CALIB.EXE
writes the file
in this format so it is more readable.
CTKERN Programming Examples
The CT Driver/Demo Disk contains three short example programs
under the heading of “Programmer’s Guide Programming Examples.”
They demonstrate how to interface to CT touch systems via the
CTKERN driver. Both a polling mode and an interrupt-driven mode are
shown. All of these programs were developed using Borland C. Minor
modifications may be required for other compilers.
The example files are:
CT.H
Contains a CT header file.
CTKRNPOL.C
Contains a CTKERN polling example.
CTKRNINT.C
Contains a CTKERN interrupt example.
Summary of Contents for TouchSystems CarrollTouch Prog
Page 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Page 11: ...Table of Contents CARROLL TOUCH viii ...
Page 13: ...Table of Contents CARROLL TOUCH x ...
Page 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Page 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Page 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Page 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...