User`s guide

C/C++ Library 51
5.6 _8316_DI
@ Description
This function is used to read data from digital input port. There are 16-bit
digital inputs on the ACL-8316/12. The digital input status can be
accessed by this function directly.
@ Syntax
I16 _8316_DI( U16 *data )
@ Argument
data: return value from digital port.
@ Return Code
ERR_NoError, ERR_BoardNoInit
@ Example
See Demo Program 'DI_DEMO.C'
5.7 _8316_DI _Channel
@ Description
This function is used to read data from digital input channels (bit). There
are 16 digital input channels on the ACL-8316/12. When performs this
function, the digital input port is read and the value of the corresponding
channel is returned.
* channel means each bit of digital input ports.
@ Syntax
I16 _8316_DI( U8 di_ch_no, Boolean *data )
@ Argument
di_ch_no: the DI channel number, the value has to be set from 0 to 15.
data: return value, either 0 or 1.
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_InvalidDIChannel