Intel cPCI-7200 Switch User Manual


 
36
C/C++ Libraries
5.10 _7200_DI_Channel
@ Description
This function is used to read data from digital input channels (bit). There are
32 digital input channels on the PCI-7200. 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 port.
@ Syntax
Visual C++ (Windows 95)
int W_7200_DI_Channel (U8 di_ch_no, Boolean *di_data)
Visual Basic (Windows 95)
W_7200_DI_Channel (ByVal di_ch_no As Byte, di_data As Byte)
As Long
C/C++ (DOS)
int _7200_DI_Channel (U8 di_ch_no, Boolean *di_data)
@ Argument
di_ch_no : the DI channel number, the value has to be set within 0 and
31.
di_data : return value, either 0 or 1.
@ Return Code
ERR_NoError
ERR_InvalidDIChannel
5.11 _7200_DO
@ Description
This function is used to write data to digital output port. There are 32 digital
outputs on the PCI-7200.
@ Syntax
Visual C++ (Windows 95)
int W_7200_DO (U32 do_data)
Visual Basic (Windows 95)
W_7200_DO (ByVal do_data As Long) As Long
C/C++ (DOS)
int _7200_DO (U32 do_data)
@ Argument
do_data : value will be written to digital output port
@ Return Code
ERR_NoError