ADLINK ACL-8112 Series User Manual
Page 75

C Language Library • 67
7.10 _8112_AD_Set_Mode
Description
This function is used to set the A/D trigger and data transfer mode by
means of writing data to the mode control register. The hardware initial
state for the ACL-8112 is set as AD_MODE_1 software (internal) trigger
with program polling data mode.
A/D Mode
Description
AD_MODE_0
External Trigger, Software Polling
AD_MODE_1
Software Trigger, Software Polling
AD_MODE_2
Timer Trigger, DMA Transfer
AD_MODE_3
External Trigger, DMA Transfer
AD_MODE_4
External Trigger, Interrupt Transfer
AD_MODE_5
Software Trigger, Interrupt Transfer
AD_MODE_6
Timer Trigger, Interrupt Transfer
AD_MODE_7
Not Used
Note: All analog input modes selection should match with the hardware
settings, which is described in the hardware users manual.
Syntax
int _8112_AD_Set_Mode(int ad_mode )
int _8112pg_AD_Set_Mode(int ad_mode )
Argument:
ad_mode:
AD trigger and data transfer mode
( please refer above table.)
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidMode