User`s guide
C/C++ Library 61
irq_ch_no: IRQ channel number, used to stop DMA
Note:
Make sure your hardware configuration is set to right IRQ
interrupt level.
dma_count: the number of A/D conversion
ad_buf: the start address of the memory buffer to store the AD data,
the buffer size must be larger than the number of AD
conversion.
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidADChannel,
ERR_AD_InvalidGain, ERR_InvalidDMAChannel,
ERR_InvalidIRQChannel, ERR_InvalidTrigSrc
@ Example
See Demo Program 'AD_DEMO3.C'
5.23 _8316_AD_DMA_Status
@ Description
Since the _8316_AD_DMA_Start function is executed in background, you
can issue the function _8316_AD_DMA_Status to check its operation
status.
@ Syntax
I16 _8316_AD_DMA_Status( U8 *status , U16 *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_DEMO3.C'