6 configuration port – ADLINK PCI-7224 User Manual
Page 47
 
C/C++ Libraries
• 39
5.6 Configuration
Port
@ Description
This function is used to configure the Input or Output of each Port. Each I/O 
Port of PCI-7224/7248/7296 is either input or output, so it has to be 
configured as input or output before I/O operations are applied. 
@ Syntax
C/C++ (DOS)
U16 _7248_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 _7249_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 _7296_Config_Port (U16 cardNo, U16 channelPort,
U16 direction)
C/C++ (Windows 95)
U16 W_7248_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 W_7249_Config_Port (U16 cardNo, U16 channelPort,
U16 direction);
U16 W_7296_Config_Port (U16 cardNo, U16 channelPort,
U16 direction)
Visual Basic (Windows 95)
W_7248_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As 
Integer) As Integer 
W_7249_Config_Port (ByVal cardNo As Integer, ByVal
channelPort As Integer, ByVal direction As 
Integer) As Integer 
W_7296_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