
34
•
C/C++ DOS Libraries
5.8 _7256_INT_Control
@ Description
This function is used to control the interrupt source of PCI-7256. For more
details about interrupt sources, refer to section 3.7
@ Syntax
U16 _7256_INT_Control (U16 boardID, U16 COS_Enable, U16
CH0_Enable, U16 CH1_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.
The possible combinations of interrupt source are shown
in the following table.
CH1_Enable CH0_Enable COS_Enable IRQ source IRQ trigger condition
0 0 0 Interrupt disable --
0 0 1 COS interrupt
Change of state in the
enabled channel
0 1 0 Ch.0 interrupt enable
Rising edge of DI
channel 0
1 0 0 Ch.1 interrupt enable
Rising edge of DI
channel 1
1 1 0
Ch.0 & 1 interrupt
enable
Rising edge of DI
channel 0 & 1
0 1
1 0
1 1
1
Not allowed
(disable)
---
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_INTNotSet
Comentários a estes Manuais