ADLINK cPCI-9116 User Manual

Page 83

Advertising
background image

C++ Library

• 73

Mode:

EOC or Half-full interrupt transfer mode selection

0: EOC interrupt transfer mode

1: Half-full interrupt transfer mode

@ Return Code

ERR_NoError
ERR_BoardNoInit,
ERR_InvalidADChannel,
ERR_InvalidTimerValue
ERR_AD_InvalidGain

6.10.2 _9116_AD_INT_Status

@ Description

Since the _9116_AD_INT_Start() function runs in the background, this
function can be used to check its operation status.

@ Syntax

C/C++ (DOS)

int I16 _9116_AD_INT_Status( I16 card_number, I16 *status , U32
*count);

@ Argument

card_number:

the card number of the cPCI-9116 to be initialized,
totally 4 cards can be initialized, valid card
numbers are CARD_1, CARD_2, CARD_3,
CARD_4.

Status:

status of the DMA data transfer

AD_INT_STOP (or 0): Interrupt transfer is
completed.

AD_INT_RUN (or 1): Interrupt transfer is not
completed.

Count:

the number of A/D data that has been transferred.

@ Return Code

ERR_NoError
ERR_AD_DMANotSet
ERR_BoardNoInit

Advertising