5 _7300_configure, 7300_configure – ADLINK PCIe-7300A User Manual

Page 77

Advertising
background image

C/C++ Libraries

67

5.5

_7300_Configure

@ Description

Set the port DI/O configuration, terminator control, and control sig-
nal polarity for the cPCI/PCI/PCIe-7300A card.

@ Syntax

Visual C/C++ (Windows 95)

int W_7300_Configure (int card_number, int

dio_config, int term_cntrl, int cntrl_pol)

Visual Basic (Windows 95)

W_7300_Configure (ByVal card_number As Long,

ByVal dio_config As Long, ByVal term_cntrl

As Long, ByVal cntrl_pol As Long) As Long

C/C++ (DOS)

int _7300_Configure (int card_number, int

dio_config, int term_cntrl, int cntrl_pol)

@ Argument

card_number

:The card number of the cPCI/PCI/PCIe-7300A

card.

dio_config

:The port configuration

DI32: input port is 32-bit wide, PORTB is configured as the
extension of PORTA.

DO32: output port is 32-bit wide, PORTA is configured as the
extension of PORTB.

DI8DO8: PORTA is 8-bit input and PORTB is 8-bit output

DI8DO16: PORTA is 8-bit input and PORTB is 16-bit output

DI16DO8: PORTA is 16-bit input and PORTB is 8-bit output

DI16DO16: PORTA is 16-bit input and PORTB is 16-bit out-
put

term_cntrl

:the terminator control

PAOFF_PBOFF: PORTA terminator OFF, PORTB termina-
tor OFF

PAOFF_PBON: PORTA terminator OFF, PORTB terminator
ON

Advertising