ADLINK PCI-7396 User Manual
Page 45
![background image](/manuals/733402/45/background.png)
C/C++ Libraries
• 37
5.6 _7396_Config_Port
@ Description
This function is used to configure the Input or Ouput of each Port. Each I/O
Port of PCI-7396 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 _7396_Config_Port (U16 cardNo, int ctrlValue)
C/C++ (Windows 95)
U16 W_7396_Config_Port (U16 cardNo, int ctrlValue)
Visual Basic (Windows 95)
W_7396_Config_Port (ByVal cardNo As Integer, ByVal channelPort
As Integer, ByVal direction As Integer) As Integer
@ Argument
cardNo :
The card number of PCI7396 card initialized.
ctrlValue :
P1ARD : CH1’s Port A input port
P1BRD : CH1’s Port B input port
P1CRD : CH1’s Port C input port
P1RD : CH1’s Port A,B,C input port
E_P1RD : CH1’s Port A,B,C input port use external clock to
latch data
P1AWR : CH1’s Port A output port
P1BWR : CH1’s Port B output port
P1CWR : CH1’s Port C output port
P1WR : CH1’s Port A,B,C output port
P2ARD : CH2’s Port A input port
P2BRD : CH2’s Port B input port
P2CRD : CH2’s Port C input port
P2RD : CH2’s Port A,B,C input port
E_P2RD : CH2’s Port A,B,C input port use external
clock
to latch data
P2AWR : CH2’s Port A output port
P2BWR : CH2’s Port B output port
P2CWR : CH2’s Port C output port
P2WR : CH2’s Port A,B,C output port
P3ARD : CH3’s Port A input port
P3BRD : CH3’s Port B input port
P3CRD : CH3’s Port C input port
P3RD : CH3’s Port A,B,C input port
E_P3RD : CH3’s Port A,B,C input port use external
clock to
latch data
P3AWR : CH3’s Port A output port
P3BWR : CH3’s Port B output port