8 _7260_int_control, Description, Syntax – ADLINK PCI-7260 User Manual
Page 52: Argument, 7260_int_control, Description @ syntax

42
C/C++ DOS Libraries
5.8 _7260_INT_Control
@ Description
This function is used to control the interrupt source of PCI-7260.
For more details about interrupt sources, refer to section 3.7
@ Syntax
U16 _7260_INT_Control (U16 boardID, U16
COS_Enable, U16 CH0_Enable, U16 CH1_Enable,
U16 WDT_Enable)
@ Argument
boardID: Board ID to the specific borad.
COS_Enable: COS interrupt function enable/disable.
CH0_Enable: Digital input channel 0 interrupt enable/disable.
CH1_Enable: Digital input channel 1 interrupt enable/disable.
WDT_Enable: Watch Dog Timer interrupt counter enable/disable
The possible combinations of interrupt source are shown in the fol-
lowing table.
WDT_Enable CH1_Enable CH0_Enable COS_Enable
IRQ
source
IRQ trigger condition
0
0
0
0
Interrupt
disable
--
0
0
0
1
COS inter-
rupt
Change of state in the
enabled channel
0
0
1
0
Ch.0 inter-
rupt enable
Rising edge of DI
channel 0
0
1
0
0
Ch.1 inter-
rupt enable
Rising edge of DI
channel 1
0
1
1
0
Ch.0 & 1
interrupt
enable
Rising edge of DI
channel 0 & 1
1
0
0
0
WDT inter-
rupt enable
Rising edge of WDT
carry out overflow