CARROLL TOUCH
Chapter 7 - CTKERN
Touch System Programmer’s Guide
7-13
Determining If the CTKERN Driver Is Installed
An application program may determine if the CTKERN driver is
installed by performing a string compare starting at the address pointed
to by the CTKERN software interrupt 2. For all CT drivers, the
first nine characters will be
CT DRIVER
. The type of driver (CTKERN
in this case) is identified by an additional string:
CT DRIVER - CTKERN
Calling CTKERN Functions
The CTKERN functions may be accessed via the CTKERN driver
software interrupt (default 56H).
To call a CTKERN function, load the registers as described in the “Call
with” section for the CTKERN functions described in Appendix D.
Then call the CTKERN driver software interrupt (default 56H) and read
the registers as described in the “Returns” section for that function.
An example of a CTKERN function call is:
int GetTouchState (int ctkern_sw_int,
int *x_coordinate, int *y_coordinate)
{
union REGS regs;
int touch_state;
regs.x.ax =1;
int86(ctkern_sw_int, ®s, ®s);
touch_state = (int) regs.h.bl;
*x_coordinate = regs.x.cx;
*y_coordinate = regs.x.dx;
return(touch_state);
} /* GetTouchState */
CALIB.EXE
Note that both a TAPI driver and the CTKERN driver must be installed
to run
CALIB.EXE
, the CTKERN calibration program.
Содержание 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 ...