5 _7250_di, _7252_di, Description, Syntax – ADLINK cPCI-7252 User Manual

Page 44: Arguments, 7250_di, _7252_di, Description @ syntax @ arguments

Advertising
background image

34

C/C++ Libraries

5.5 _7250_DI, _7252_DI

@ Description

This function is used to read data from the digital input port. There
are eight 8-bit digital inputs on the PCI-7250 or PCI-7251
extended board. You can obtain all 32 input data from using the
_7250_DI function.

@ Syntax

C/C++ (DOS)

U16 _7250_DI (U16 cardNo, U16 diPortNo, U16

*diData)

U16 _7252_DI (U16 cardNo, U16 *diData)

C/C++ (Windows 95)

U16 W_7250_DI (U16 cardNo, U16 diPortNo, U16

*diData)

U16 W_7252_DI (U16 cardNo, U16 *diData)

Visual Basic (Windows 95)

W_7250_DI (ByVal cardNo As Integer, ByVal

diPortNo As Integer, diData As Integer) As
Integer

W_7252_DI (ByVal cardNo As Integer, diData As

Integer) As Integer

@ Arguments

cardNo: card number selected

diPortNo: Digital Input Channel No, the constant is:.

Note: This argument is not necessary for cPCI-7252

diData: return 8-bit value from digital port.

DI_PORT0 0x00

Access the 8 Digital Input of PCI-7250

DI_PORT1 0x01 Access the 8 Digital Input of Expansion Board PCI-7251#1
DI_PORT2 0x02 Access the 8 Digital Input of Expansion Board PCI-7251#2
DI_PORT3 0x03 Access the 8 Digital Input of Expansion Board PCI-7251#3

Advertising