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.
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 ...