CyberResearch PCIDIO 24H Computer Hardware User Manual


 
36 C/C++ Libraries
5.6 Configuration Port
@ Description
This function is used to configure the Input or Output of each Port. Each I/O
Port of PCIDIO 24H/48H/96H 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 _DIO48H_Config_Port (U16 cardNo, U16
channelPort, U16 direction);
U16 _DIO96H_Config_Port (U16 cardNo, U16
channelPort, U16 direction)
C/C++ (Windows 95)
U16 W_DIO48H_Config_Port (U16 cardNo, U16
channelPort, U16 direction);
U16 W_DIO96H_Config_Port (U16 cardNo, U16
channelPort, U16 direction)
Visual Basic (Windows 95)
W_DIO48H_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As
Integer) As Integer
W_DIO96H_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As
Integer) As Integer
@ Argument
cardNo: card number to select board
channelPort: The same as channelPort in section 5.5.
direction: port I/O direction
INPUT_PORT: the port is configure as INPUT
OUTPUT_PORT: the port is configure as OUTUT
@ Return Code
ERR_NoError