beautypg.com

ADLINK EOS-1200 User Manual

Page 70

background image

58

Function Library

short DIO_INT1_EventMessage (ushort CardNum-
ber, short Int1Mode, long windowHandle, long
message, MulticastDelegate callbackAddr)

Parameter(s)

CardNumber

ID of the card performing the operation

Int1Mode

Interrupt mode of INT1. Valid values:

INT1_DISABLE

INT1_EXT_SIGNALINT1 by COS of Ch0 of Port 0

windowHandle

Handle to the window in which a Windows message will be
received when the specified INT event occurs; if windoHan-
dle is 0, no Windows messages will be sent

Message

User-defined message issued when the specified INT event
occurs. The message can be of any value. In Windows, the
message can be set to a value including any Windows pre-
defined messages, such as WM_PAINT. To define a custom
message, any value ranging from WM_USER (0x400) to
0x7fff can be used, this range reserved by Windows for
same.

callbackAddr

Address of the user callback function. The PCIS-DASK calls
this function when the specified INT event occurs. If no call-
back function is required, set callbackAddr to 0.

Return Code(s)

NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport