Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 8 of 23

VRC 4000 Software Driver Manual: Chapter 2 TBDriver Touchscreen Driver for DOS, pages 63 to 72

Pages 63 to 72 of 206, from VRC 4000 Software Driver Manual

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol VRC-4000

Page 63

Chapter 2: TBDriver Touchscreen Driver for DOS

Function: Define Pad Calling Sequence: AL = 12 hex AH = Pad number BX = X1 (Top left) CX = Y1 DX = X2 (Bottom right) ES = Y2 Call API interrupt

Return Values:

None

Description:

Defines the coordinates of a pad, but does not activate it. The coordinates must be defined in the current scale. An already defined pad can be re-defined at any time, whether it is currently active or inactive. Pad numbers other than 1 to 99 are ignored.

See Also:

Activate Pad De-activate Pad Get Pad Definition

2-21

Page 64

VRC 4000 Software Driver Manual

Function: Calling Sequence:

Disable Touches AL = 19 hex Call API interrupt

Return Values:

None

Description:

Prevents further coordinates from being returned via a Read Touches API call. In the case of the Carroll Touch and Intasolve infra-red touchscreens, a command is sent to the touchscreen controller which disables touch scanning and preserves the lifetime of the infra-red LED's.

See Also:

Enable Touches Get Parameters

2-22

Page 65

Chapter 2: TBDriver Touchscreen Driver for DOS

Function: Calling Sequence:

Enable Touches AL = 20 hex Call API interrupt

Return Values:

None

Description:

Re-enables touches disabled by Disable Touches. In the case of the Carroll Touch and Intasolve infra-red touchscreens, a command is sent to the touchscreen controller which re-enables touch scanning.

See Also:

Disable Touches Get Parameters

2-23

Page 66

VRC 4000 Software Driver Manual

Function: Calling Sequence:

Flush Buffer AL = 7 Call API interrupt

Return Values:

None

Description:

Flushes the touch storage buffer, discarding all stored touches.

2-24

Page 67

Chapter 2: TBDriver Touchscreen Driver for DOS

Function: Calling Sequence:

Get Current Calibration AL=11 hex Call API interrupt

Return Values:

AH= BX = CX = DX = ES = DI = SI =

Description:

Returns the current state of calibration in the driver. The calibration modes are: 0 1 2 3 4 5 6

Current calibration mode (see below) X1 (Left edge) Y1 (Bottom edge) X2 (Right edge) Y2 (Top edge) Segment address Offset address of TBcalib file pathname as an asciiz string

Hard 40 x 25 80 x 25 User defined (1) User defined (2) 320 x 200 640 x 200

7 8 9 10 11 255

640 x 350 640 x 480 640 x 400 800 x 600 1024 x 768 API defined

API defined calibration is set by the Activate Soft Calibration Coordinates function.

See Also:

Read Soft Calibration Coordinates De-activate Soft Calibration Activate Soft Calibration Coordinates

2-25

Page 68

VRC 4000 Software Driver Manual

Function: Calling Sequence:

Get Pad Definition AL = 15 hex AH = Pad number Call API interrupt

Return Values:

AH = 1 if pad is currently active 0 if not BX = X1 CX = Y1 DX = X2 ES = Y2

Description:

Returns information about the pad.

See Also:

Activate Pad De-activate Pad Define Pad

2-26

Page 69

Chapter 2: TBDriver Touchscreen Driver for DOS

Function: Calling Sequence:

Get Parameters AL

=

3

Call API interrupt

Return Values:

AL AH BL

= = = 08 17 29 04 34 35 19 33 43 37 42 02 14 11 05 20 12 03 28 07 22 10 09

Stabilization factor Current origin, 0 or 1 Touchscreen hardware type AFE Safetouch (AFE protocol) AFE Safetouch (Carroll protocol) Brady TSD-SI Carroll Touch Smart-Frame Carroll Touch HBC bus controller Carroll Touch SBC bus controller Dale Dynapro - Serial, not SC3 Dynapro - Serial, SC3 Dynapro - Bus, pre version J2LB5 Dynapro - Bus, post version J2LB5 Ellinor Personal Touch Elographics Accutouch, CRC Elographics Accutouch, Bus Elographics AccuTouch, Serial Elographics DuraTouch Elographics Intellitouch, Bus Elographics Intellitouch, Serial ExZec SureTouch Intasolve Touch ISI Crystal Clear Gunze/TST, Bus Gunze/TST, Serial

2-27

Page 70

VRC 4000 Software Driver Manual

39 01 06 16 21 27 38 36 41 13 18 25 26 32 30 15 24

Keytec Magic Touch MicroTouch Microvitec Touchtech Mors matrix Capacitive Quick Analogue Resistive Quick Analogue Resistive Rev 1.2 Simple Matrix SwacTouch 3D Thomson Tubes Electronique Touch Technology TekTouch Touch Technology AR5000/Digitouch Touch Technology PC2000 Bus Touch Technology RS2000 Serial Touch Technology PC5000 Bus Vivid TST2900 Wasp TSI 5000/3 Wasp TSI 5000/4 BC (Bus Controller)

BH

=

CL CH SI DI DL ES DH

= = = = = = =

COM port number 0 = COM1, 1 = COM2, etc. Driver major version number Driver minor version number Current X scale Current Y scale Current Z scale Current sensitivity Touch state 1 = Touches currently disabled 0 = Touches currently enabled

Description:

Returns miscellaneous parameters currently in use by the driver.

See Also:

Set Scale and Origin Set Sensitivity Set Stabilization

2-28

Page 71

Chapter 2: TBDriver Touchscreen Driver for DOS

Function: Calling Sequence:

Hard Calibrate AL=4 Call API interrupt AL=5 Call API interrupt

Return Values:

(after second call) AH = 0 means success, any other value means failure

Note:

These two calls must be used as a pair and in the correct order.

Description:

After the first call has been issued, the screen should be touched in the bottom left hand corner. The first call will wait for this, and will only return when it has been performed. After the second call has been issued, the screen should be touched in the top right hand corner. The second call will wait for this, and will only return when it has been performed. Note that no coordinates are returned to the application, since hard calibration is entirely the domain of the driver. The new hard calibration will be permanently stored by TBdriver.

2-29

Page 72

VRC 4000 Software Driver Manual

Function: Non-Destructive Read Calling Sequence: AL = 27 hex Call API Interrupt

Return Values:

As for Read Touches

Description:

Identical to Read Touches, but does not de-queue touch states from the internal buffer.

See Also:

Read Touches

2-30