Gx6192/Gx6256/Gx6864PioSetOutputEnable

Purpose

Writes PIO output enable (tristate) value to the output register

Syntax

Gx6256PioSetOutputEnable (nHandle, ucOutputEnable, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6256/GX6864/GX6192 board.
ucOutputEnable
BYTE
Bit field that represents the 8 enable (tristate) control lines of the PIO
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function controls the tri-state data of the 8 line PIO device.

Example

The following example sets all 8 lines to output enabled:

 

Gx6256PioSetOutputEnable (nHandle, 0xFF, &nStatus);

 

See Also

Gx6192/Gx6256/Gx6864PioGetOutputEnable, Gx6192/Gx6256/Gx6864PioSetOutputData, Gx6192/Gx6256/Gx6864PioGetOutputData,  GxSWGetErrorString