User`s guide

C/C++ Library for DOS 45
5.11 _8111_AD_Soft_Trig
@ Description
This function is used to trigger the A/D conversion by software. When
the function is called, a trigger pulse will be generated and the
converted data will be stored in the base address Base +4 and Base
+5, and can be retrieved by function _8111_AD_Aquire(). Please
refer to section 6.11.
@ Syntax
int _8111_AD_Soft_Trig( void )
@ Argument:
None
@ Return Code:
ERR_NoError
ERR_BoardNoInit
@ Example:
Please refer the example in next section.
5.12 _8111_AD_Aquire
@ Description
This function is used to poll the AD conversion data. It will trigger the
AD conversion, and read the 12-bit A/D data until the data is ready
('data ready' bit becomes low).
@ Syntax
int _8111_AD_Aquire( int *ad_data )
@ Argument:
ad_data: 12-bit A/D converted value, the value
should within 0 to 4095.
@ Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_AD_AquireTimeOut
@ Example:
#include “aclerr.h”
#include “8111.h”
main()
{
int ad_data;
int ErrCode;
_8111_Initial( CARD_1, 0x220 );