DIO_SetDualInterrupt | ![]() ![]() ![]() ![]() |
DIO_SetDualInterrupt
@ Description
This function informs PCIS-DASK library of the interrupt mode of two interrupt sources of dual-interrupt system.
@ Cards Support
7230, 7233, 7248, 7249, 7296, 7432, 7433
@ Syntax
I16 DIO_SetDualInterrupt(U16
wCardNumber, I16 wInt1Mode, I16 wInt2Mode,
void (*event1_handler)(int), void (*event2_handler)(int))
@ 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/7249/7296 and cPCI-7248/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/7233/7432/7433 and cPCI-7230/7432/7433:
INT1_DISABLE : INT1 Disabled
INT1_ EXT_SIGNAL : INT1 by External Signal
Int2Mode : The
interrupt mode of INT2.The valid values:
PCI-7248/7296 and cPCI-7248/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/7432/7433 and cPCI-7230/7432/7433:
INT2_DISABLE : INT2 Disabled
INT2_ EXT_SIGNAL : INT2 by External Signal
event1_handler : address
of the user specified signal handler.
The signal handler is called when the specified INT1 event occurs.
If you do not want to use a callback function, set event1_handler to 0.
event2_handler : address
of the user specified signal handler.
The signal handler is called when the specified INT2 event occurs.
If you do not want to use a callback function, set event2_handler to 0.
@ Return Code
NoError, ErrorInvalidCardNumber,
ErrorCardNotRegistered, ErrorFuncNotSupport