Gx6192/Gx6256/Gx6864PioGetOutputEnable

Purpose

Returns the PIO output enable (tri-state) value of the output register

Syntax

Gx6256PioGetOutputEnable (nHandle, pucOutputEnable, pnStatus)

Parameters

Name
Type
Comments
nhandle
SHORT
Handle to a GX6192/GX6256/GX6864 board.
pucOutputEnable
PBYTE
Bit field that represents the 8 enable (tri-state) 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 returns the output enable (tri-state) control data:

 

BYTE ucOutputEnable

Gx6256PioGetOutputEnable (nHandle, &ucOutputEnable, &nStatus);

 

See Also

Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioSetOutputData, Gx6192/Gx6256/Gx6864PioGetOutputData, GxSWGetErrorString