A.1.4 dio_setdualinterrupt, A.1.4, Dio_setdualinterrupt – ADLINK EOS-1200 User Manual
Page 72
60
Function Library
INT2 interrupt mode. Valid values:
Z
INT2_DISABLE
Z
INT2_EXT_SIGNAL INT2 by COS of Ch1 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
A.1.4
DIO_SetDualInterrupt
Description
Informs the PCIS-DASK library of the interrupt mode of two
interrupt sources of a dual-interrupt system and returns dual
interrupt events. If an interrupt is generated, the corre-
sponding interrupt events are signaled. The application
uses Win32 wait functions, such as WaitForSingleObject or
WaitForMultipleObjects to check the interrupt event status.