C/C++ Library for DOS
•
43
5.10 _8111_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 of the ACL-8111 is set as AD_MODE_1 software( internal) trigger
with program polling data.
A/D Mode
Description
AD_MODE_0
Software Trigger, Software Polling Transfer
AD_MODE_1
Software Trigger, Interrupt Transfer
AD_MODE_2
External Trigger, Software Polling Transfer
AD_MODE_3
External Trigger, Interrupt Transfer
AD_MODE_4
Timer Trigger, Software Polling Transfer
AD_MODE_5
Timer Trigger, Interrupt Transfer
@ Syntax
int _8111_AD_Set_Mode(int irq_no, int ad_mode )
@ Argument:
irq_no: interrupt IRQ level
ad_mode: AD trigger and data transfer mode
( please to refer above table.)
@ Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidMode
@ Example:
#include “aclerr.h”
#include “8111.h”
main()
{
_8111_Initial( CARD_1 , 0x220 );
/* Assume NoError when Initialize ACL-8111
*/
_8111_AD_Set_Mode( IRQ5, AD_MODE_0 );
printf( "Now, disable internal trigger.\n" );
}