ADLINK ACL-8112 Series User Manual
Page 80

72
• C Language Library
7.14 _8112_AD_DMA_Start
Description
The function will perform an A/D conversion N times with DMA data
transfer using the pacer trigger (internal timer trigger). It takes place in
the background and will not stop until the Nth conversion has been
performed or your program executes the _8112_AD_DMA_Stop()
function to stop the process. After executing this function, it is
necessary to check the status of the operation by using the function
_8112_AD_DMA_Status(). This function can only be performed on an
A/D channel with a fixed analog input range.
Syntax
int _8112_DMA_Start( int ad_ch_no, int ad_range,
int
dma_ch_no, int irq_ch_no
int count , int *ad_buffer
unsigned int c1, unsigned int c2)
int _8112pg_DMA_Start( int ad_ch_no, int ad_gain,
int
dma_ch_no, int irq_ch_no
int count , int *ad_buffer
unsigned int c1, unsigned int c2)
Argument:
ad_ch_no: A/D channel number
ad_range: A/D analog input range, please refer to
the Section 7.9 to find the possible
values.
dma_ch_no: DMA channel number, DMA_CH_1 or DMA_CH_3
Note: Make sure your hardware configuration is set to the correct DMA
channel.
irq_ch_no:
IRQ channel number, used to stop DMA
Note: Make sure your hardware configuration is set to the correct IRQ
interrupt level.