DIO_INT2_EventMessage | ![]() ![]() ![]() ![]() |
DIO_INT2_EventMessage
@ Description
Controls the interrupt sources of INT2 of Dual Interrupt system and notifies the user's application when an interrupt event occurs. The notification is performed through a user-specified callback function or the Windows PostMessage API.
@ Cards Support
7230, 7233, 7248, 7249, 7296, 7432, 7433
@ Syntax
Microsoft C/C++ and Borland C++
I16 DIO_INT2_EventMessage (U16 CardNumber, I16 Int2Mode, HANDLE windowHandle, U32 message, void *callbackAddr())
Visual Basic 5
DIO_INT2_EventMessage (ByVal CardNumber As Integer, ByVal Int2Mode As Integer, ByVal windowHandle As Long, ByVal message As Long, ByVal callbackAddr As Long) As Integer
@ Parameter
CardNumber : The card id of the card that want to be performed this operation.
Int2Mode : The interrupt mode of INT1. The valid values:
PCI-7248/cPCI-7248/PCI-7249/7296:
INT2_DISABLE : INT2 Disabled
INT2_FP2C0 : INT2 by Falling edge of P2C0
INT2_RP2C0_FP2C3 : INT2 by P2C0 Rising or P2C3 Falling
INT2_TIMER_COUNTER: INT2 by Timer Counter down to zero
INT2_ EXT_SIGNAL: INT2 by External Signal
PCI-7230/cPCI-7230/PCI-7233/7432/7433:
INT2_DISABLE : INT2 Disabled
INT2_ EXT_SIGNAL: INT2 by External SignalwindowHandle : The handle to the window you want to receive a Windows message in when the specified INT2 event happens. If windowHandle is 0, no Windows messages are sent.
message : a message you define. When the specified INT2 event happens, PCIS-DASK passes message back to you. message can be any value.
In Windows, you can set message to a value including any Windows predefined messages (such as WM_PAINT). However, to define your own message, you can use any value ranging from WM_USER (0x400) to 0x7fff. This range is reserved by Microsoft for messages you define.
callbackAddr : address of the user callback function. PCIS-DASK calls this function when the specified INT2 event occurs. If you do not want to use a callback function, set callbackAddr to 0.
HTML export copyright (C) 1998 Windows Help Designer