DIO_7300SetInterrupt Previous topicNext topicFirst topicLast topic

DIO_7300SetInterrupt

@ Description

This function controls the interrupt sources (AuxDIO and Timer 2) of local interrupt system of PCI-7300A/cPCI7300A and returns the two interrupt events. If an interrupt is generated, the corresponding interrupt event will be signaled.

@ Cards Support

7300A

@ Syntax

I16 DIO_7300SetInterrupt(U16 CardNumber, I16 AuxDIEn, I16 T2En, void (*event1_handler)(int), void (*event2_handler)(int) )

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
AuxDIEn : The control value for AUXDI interrupt. The valid values:
        0: disable
        1: enable
T2En : The control value for Timer2 interrupt. The valid values:
        0: disable
        1: enable
event1_handler : The signal handler for Event1.
event2_handler : The signal handler for Event2.

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport