ADLINK ACL-8216 User Manual
Page 64

56 • C/C++ Library
5.16 _8216_AD_DMA_Status
@ Description
Since the _8216_AD_DMA_Start function is executed in background,
you can issue the function _8216_AD_DMA_Status to check its
operation status.
@ Syntax
int _8216_AD_DMA_Status( int *status , int *count )
@ Argument
status:
status of the DMA data transfer
0: AD DMA is not completed
1: AD DMA is completed
count:
the number of A/D data which has been
transferred.
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_AD_DMANotSet
@ Example
See demo program 'AD_Demo4.C'
5.17 _8216_AD_DMA_Stop
@ Description
This function is used to stop the DMA data transfer. After executing
this function, the internal A/D trigger is disable and the A/D timer
( timer #1 and #2) is stopped. The function returns the number of the
data which has been transferred, no matter if the A/D DMA data
transfer is stopped by this function or by the DMA terminal count ISR.
@ Syntax
int _8216_AD_DMA_Stop( int *count )
@ Argument
count:
the number of A/D converted data which
has
been transferred.
@ Return Code
ERR_NoError
ERR_BoardNoInit
ERR_AD_DMANotSet
@ Example
See demo program 'AD_Demo4.C'