HP (Hewlett-Packard) PCI-9111DG/HR Network Card User Manual


 
C/C++ Library 45
ADChannelNo: selected channel number or the ending channel number
to perform A/D conversion.
@ Return Code
ERR_NoError
5.16 _9111_AD_Get_Channel
@ Description
This function reads from the multiplexer scan channel register to get the
AD channel number and the value is stored in ADChannelNo. Under
non-auto scan mode, the bit 0 to 3 of ADChannelNo stores the channel
number setting and the bit 4 to 7 of ADChannel is all ‘0”. Under auto-scan
mode, the bit 0 to 3 of ADChannelNo records the ending channel number.
The bit 4 to 7 of ADChannelNo is the selected channel.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_Get_Channel (U16 cardNo, U16 *ADChannelNo )
C/C++ (Windows 95)
U16 W_9111_AD_Get_Channel (U16 cardNo, U16
*ADChannelNo)
Visual Basic (Windows 95)
W_9111_AD_Get_Channel (ByVal cardNo As Integer, ADChannelNo As
Integer) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized
ADChannelNo: channel number to perform A/D conversion
@ Return Code
ERR_NoError