A.2 cos interrupt functions, A.1.1 dio_int_event_message, Cos interrupt functions – ADLINK EOS-1200 User Manual
Page 67: A.1.1, Dio_int_event_message
Function Library
55
EOS-1200
Value
Returns the digital data read from the specified output port.
Valid values: PCMe-1432 16-bit data (for port 0 and port 1)
Return Code(s)
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
ErrorInvalidIoChannel
A.2 COS Interrupt Functions
A.1.1
DIO_INT_Event_Message
Description
Controls and notifies the user application when a specified
interrupt event occurs. The notification is executed through
a user-specified callback function or the Windows PostMes-
sage API. When a new event message is added, it remains
active until the function is called by setting the argument
mode to 0, removing the specified interrupt event message.
To remove a specified message, make sure to specify the
event handle to be notified for the message.
Syntax
C/C++
I16 DIO_INT_EventMessage (U16 CardNumber, I16
mode, HANDLE evt, HANDLE windowHandle, U32
message, U32 callbackAddr)
Visual Basic
DIO_INT_EventMessage (ByVal CardNumber As
Integer, ByVal mode As Integer, ByVal evt As
Long, ByVal windowHandle As Long, ByVal mes-
sage As Long, ByVal callbackAddr As Long) As
Integer
VB.Net