ADLINK ACL-8112 Series User Manual
Page 86
 
78
• C Language Library
7.17 _8112_AD_INT_Start
Description
The function will perform an A/D conversion N times with interrupt data 
transfer using the pacer trigger. It takes place in the background which 
will not stopped until the Nth conversion has completed or your program 
executes the _8112_AD_INT_Stop() function to stop the process. After 
executing this function, it is necessary to check the status of the 
operation by issuing the 8112_AD_INT_Status() function. The function 
can only be performed on an A/D channel with a fixed analog input 
range. 
Syntax
int _8112_INT_Start( int ad_ch_no, int ad_range, 
 
int irq_ch_no, int count, int
*ad_buffer,
unsigned int c1, unsigned int c2)
int _8112pg_INT_Start( int ad_ch_no, int ad_gain, 
 
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 section 7.9 for the possible 
values. 
irq_ch_no: IRQ channel number, used to stop DMA
count:
the number of A/D conversion
ad_buffer:
the start address of the memory buffer
to store the A/D data, the buffer 
size must be larger than the number 
of A/D conversions. 
c1:
the 16-bit timer frequency divider of
timer
channel #1
c2:
the 16-bit timer frequency divider of
timer
channel #2