ADLINK cPCI-9116 User Manual
Page 80

70
• C++ Library
@ Return Code
ERR_NoError
ERR_BoardNoInit,
ERR_InvalidADChannel,
ERR_InvalidTimerValue
ERR_AD_InvalidGain
6.9.2 _9116_AD_DMA_Status
@ Description
Since the _9116_AD_DMA_Start() function runs in the background,
this function can be used to check its operation status.
@ Syntax
C/C++ (DOS)
int I16 _9116_AD_DMA_Status( I16 card_number, I16 *status ,
U32 *count, U32 *start_idx);
@ 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_DMA_STOP (or 0): DMA is completed.
AD_DMA_RUN (or 1): DMA is not completed.
Count:
the number of A/D data that have been
transferred.
@ Return Code
ERR_NoError
ERR_AD_DMANotSet
ERR_BoardNoInit