Chapter 7 - CTKERN
CARROLL TOUCH
7-2
Touch System Programmer’s Guide
Overview
The CTKERN driver communicates with the touch system using the
TAPI driver appropriate for the touch system, and with the application
program using the CTKERN functions, which are accessed via a
software interrupt.
CTKERN is a DOS driver that offers the following features:
•
Calibration support, including multiple calibrations to allow for
monitors that do not maintain a constant image size when
displaying multiple video modes.
•
Touch coordinate scaling support, including multiple sets of
scaling parameters to automatically support multiple video modes.
•
Easy-to-use touch state reporting.
•
Support for user-installable touch event handlers for
interrupt-driven applications.
•
Uninstall capability.
The application software may not issue TAPI function calls while
CTKERN is loaded. In fact, when CTKERN loads, it reads the TAPI
software interrupt vector, saves it, and uses it to call the TAPI driver
instead of the software interrupt. The TAPI software interrupt is
replaced by a pointer to a return from interrupt instruction within
CTKERN, blocking any calls to TAPI. The return from interrupt
instruction is followed by a
NOP
and the
CT DRIVER -
string, so that
the driver detection mechanism continues to indicate an installed TAPI
driver at the TAPI software interrupt. When CTKERN is unloaded, it
replaces the TAPI software interrupt vector with the value that was
saved, re-enabling calls to TAPI.
The overall relationship between the touch hardware, the TAPI drivers,
the CTKERN driver, and the application software is illustrated in
Figure 7-1.
Calibration
CTKERN allows up to ten sets of video mode specific calibration
parameters. By using multiple calibrations, CTKERN can allow for
monitors that do not maintain a constant image size when displaying
multiple video modes. One of these sets is designated as the default
calibration.
There are three options for calibration: disabled, fixed, and automatic.
If calibration is disabled, the touch coordinates reported by CTKERN
Содержание 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 ...