User`s guide
56 C/C++ Library
5.14 _8316_AD_Set_Mode
@ Description
This function is used to set the A/D trigger source, A/D channel selection
and A/D data transfer mode by means of writing data to the
AD Mode
Control Register
(refer to section 4.7). The hardware initial state of the
ACL-8316/12 is set as internal software trigger with program polling data
transfer.
For more detailed A/D mode description, please refer to section 4.1 A/D
conversion.
@ Syntax
I16 _8316_AD_Set_Mode(U8 ad_mode )
@ Argument
ad_mode: AD Mode control value
@ Return Code
ERR_NoError
5.15 _8316_AD_Set_Autoscan
@ Description
This function is used to set automatic hardware channel scan to be
enable or disable. If the ACL-8316/12 is set as enable mode, then the A/D
channel can be converted automatically, that is, the hardware will
automatically decrement until channel 0. And then, it will go back to
channel which is set by _8316_AD_Set_Channle and wrap back to zero
again. For example, the channel is set as 4, the A/D conversion
sequence will be 4,3,2,1,0,4,3,2,1,0,4,3,2,1,0……
If the auto_scan is set as disable, the channel will be kept as single
channel only, such as channel 4.
@ Syntax
I16 _8316_AD_Autoscan( Boolean flag )
@ Argument
flag: ‘1’ Enable the autoscan
‘0’ Disable the autoscan
@ Return Code
ERR_NoError, ERR_BoardNoInit