Specifications
Chapter 6 - Touch Application Program Interface (TAPI) CARROLL TOUCH
6-8 Touch System Programmer’s Guide
call the TAPI driver software interrupt and read the registers as
described in the “Returns” section for that function.
The following example illustrates how to call TAPI functions:
int SendSmartFrameCommand (char command, int
TAPI_sw_int)
{
union REGS regs;
regs.x.ax = 1;
regs.h.bh = 0;
regs.h.bl = 0x32;
int86 (0x55, ®s, ®s);
if (regs.x.cx)
return (1);
return (0);
} /* SendSmartFrameCommand */
Touch System Initialization Using a TAPI Driver
To initialize the touch system using a TAPI driver, send the following
functions and commands in this order:
1. Call Reset (0).
2. Call SendCommand (1), with the Software_Reset (3CH) as the
Smart-Frame command (BL = 3CH). If SendCommand returns a
nonzero value in CX, abort the routine.
3. Wait at least 100 ms.
4. Call SendCommand (1), with Report_Transfer_On (44H) as the
Smart-Frame command (BL = 44H).
5. Call SendCommand (1), using Get_Error_Report (32H).
6. Call GetReports (2), which loads the report into the report buffer
pointed to by BX and DX.
7. Read the Error Report out of the buffer. If there are no errors, the
report reads F8 00 FF.
At this point you may set the desired touch mode using SendCommand
(1) with the appropriate Smart-Frame Protocol command, then turn on
scanning by using SendCommand (1) with a Touch_Scanning_On
(2AH) command. The touch system is now initialized.










