7 configuration channel – ADLINK cPCI-7249R User Manual
Page 45
C/C++ Libraries • 37
5.7 Configuration
Channel
@ Description
This function is used to configure the Input or Output of each Channel. Each
I/O Port of PCI-7224/7248/7296 is either input or output, so it has to configure
as input or output before I/O operations are applied.
@ Syntax
C/C++ (DOS)
U16 _7248_Config_Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
U16 _7249_Config_Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
U16 _7296_Config_ Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
C/C++ (Windows 95)
U16 W_7248_Config_Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
U16 W_7249_Config_Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
U16 W_7296_Config_ Channel (U16 cardNo, U16 channelNo,
U16 ctrlValue)
Visual Basic (Windows 95)
W_7248_Config_Channel (ByVal cardNo As Integer, ByVal
channelNo As Integer, ByVal ctrlValue As Integer)
As Integer
W_7249_Config_Channel (ByVal cardNo As Integer, ByVal
channelNo As Integer, ByVal ctrlValue As Integer)
As Integer
W_7296_Config_ Channel (ByVal cardNo As Integer, ByVal
channelNo As Integer, ByVal ctrlValue As Integer)
As Integer
@ Argument
cardNo:
card number to select board
channelNo: PCI_CH0, PCI_CH1, PCI_CH2, or PCI_CH3
ctrlValue: the control value to set up PA, PB, and PC as
input or output port.