6 configuration port – CyberResearch PCIDIO 48H User Manual

Page 45

Advertising
background image

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

Advertising
This manual is related to the following products: