
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.
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...