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.
Содержание 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 ...