beautypg.com

Digsetup – Measurement Computing Personal488 rev.3.0 User Manual

Page 81

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-13

DigSetup

AT488pnp and PCI488 Only !

Syntax

INT WINAPI DigSetup(DevHandleT devHandle, BOOL bLowOut, BOOL

bHighOut);

devHandle

refers to an interface handle.

bLowOut

refers to the lower nibble setup.

TRUE

= output,

FALSE

= input.

bHighOut

refers to the upper nibble setup.

TRUE

= output,

FALSE

= input.

Returns

-1

if error

Bus States

None

Examples

DigSetup(devHandle, TRUE , TRUE);

All 8 bits output.

DigSetup(devHandle, FALSE, TRUE);

Lower 4 bits input, upper 4 output.

DigSetup(devHandle, TRUE , FALSE);

Lower 4 bits output, upper 4 input.

DigSetup(devHandle, FALSE, FALSE);

All 8 bits input.

See Also

DigRead, DigWrite

The

DigSetup

command configures the digital I/O port for input and output on a per-nibble basis. Each of

the two nibbles can be set for input or output. All combinations are supported. Once

DigSetup

is called,

the configuration of the digital I/O port does not change until the next call to

DigSetup

. The port may be

read and written many times without affecting the port setup.

Note:

The digital I/O port must be configured every time the driver is opened. The configuration is
not stored between sessions.

This manual is related to the following products: