beautypg.com

ADLINK PCI-7256 User Manual

Page 43

background image

C/C++ DOS Libraries

35

5.9 _7256_CLR_IRQ

@ Description

This function is used to clear the interrupt request of PCI-7256.

@ Syntax

U16 _7256_CLR_IRQ (U16 boardID, U16 COS_CLR, U16
CH0_CLR, U16 CH1_CLR)

@ Argument

boardID: Board ID to the specific borad.
COS_CLR:
Write ‘1’ to clear COS interrupt request and
write ‘0’ without any effect.
CH0_CLR:
Write ‘1’ to clear digital input channel 0 and
write ‘0’ without any effect.
CH1_CLR:
Write ‘1’ to clear digital input channel 1 and
write ‘0’ without any effect.

@ Return Code

ERR_NoError, ERR_BoardNoInit

5.10 _7256_GET_IRQ_Status

@ Description

This function is used to get the interrupt status of PCI-7256.

@ Syntax

U16 _7256_GET_IRQ_Status (U16 boardID, U16 *COS_Status,
U16 *CH0_Status, U16 *CH1_Status)

@ Argument

boardID: Board ID to the specific borad.
COS_Status:
COS interrupt status. ‘1’ represents
interrupt asserts. ‘0’ represents interrupt de-asserts.
CH0_Status:
Digital input channel 0 interrupt status.
‘1’ represents interrupt asserts. ‘0’ represents
interrupt de-asserts.
CH1_Status:
Digital input channel 1 interrupt status.
‘1’ represents interrupt asserts. ‘0’ represents
interrupt de-asserts.

@ Return Code

ERR_NoError, ERR_BoardNoInit