beautypg.com

ADLINK EOS-1200 User Manual

Page 73

background image

Function Library

61

EOS-1200

Syntax

C/C++

I16 DIO_SetDualInterrupt (U16 CardNumber, I16
Int1Mode, I16 Int2Mode, HANDLE *hEvent)

Visual Basic

DIO_SetDualInterrupt (ByVal CardNumber As
Integer, ByVal Int1Mode As Integer, ByVal
Int2Mode As Integer, hEvent As Long) As Inte-
ger

VB.Net

DIO_SetDualInterrupt (ByVal CardNumber As
Short, ByVal Int1Mode As Short, ByVal Int2Mode
As Short, ByRef hEvent() As IntPtr) As Short

C#

short DIO_SetDualInterrupt (ushort CardNumber,
short Int1Mode, short Int2Mode, ref IntPtr[]
hEvent)

Parameter(s)

CardNumber

ID of the card performing the operation

Int1Mode

The interrupt mode of INT1. Valid values:

Z

INT1_DISABLE

Z

INT1_EXT_SIGNALINT1 by COS of Ch0 of Port 0

Int2Mode

INT2 interrupt mode. Valid values:

Z

INT2_DISABLE

Z

INT2_EXT_SIGNAL INT2 by COS of Ch1 of Port 0

hEvent

Returned dual-interrupt event handles. The status of a dual-
interrupt event indicates that an interrupt is generated or not
for cards comprising dual-interrupt system.