DIO_INT1_EventMessage  Previous topicNext topicFirst topicLast topic

DIO_INT1_EventMessage


@ Description
Controls the interrupt sources of INT1 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_INT1_EventMessage (U16 CardNumber, I16 Int1Mode, HANDLE windowHandle, U32 message, void *callbackAddr())
Visual Basic 5
DIO_INT1_EventMessage (ByVal CardNumber As Integer, ByVal Int1Mode 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.
Int1Mode : The interrupt mode of INT1. The valid values:
PCI-7248/cPCI-7248/PCI7249/7296:
INT1_DISABLE : INT1 Disabled
INT1_FP1C0 : INT1 by Falling edge of P1C0
INT1_RP1C0_FP1C3 : INT1 by P1C0 Rising or P1C3 Falling
INT1_EVENT_COUNTER: INT1 by Event Counter down to zero
INT1_ EXT_SIGNAL: INT1 by External Signal
PCI-7230/cPCI-7230/PCI7233/7432/7433:
INT1_DISABLE : INT1 Disabled
INT1_ EXT_SIGNAL: INT1 by External Signal

windowHandle : The handle to the window you want to receive a Windows message in when the specified INT1 event happens. If windowHandle is 0, no Windows messages are sent.

message : a message you define. When the specified INT1 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 INT1 event occurs. If you do not want to use a callback function, set callbackAddr to 0.


@ Return Code
NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered
ErrorFuncNotSupport


HTML  export copyright (C) 1998 Windows Help Designer