Gx6192/Gx6256/Gx6864PioGetOutputData

Purpose

Returns the PIO output value from the output register

Syntax

Gx6256PioGetOutputData (nHandle, pucOutputData, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6192/GX6256/GX6864 board.
pucOutputData
PBYTE
Bit field that represents the 8 output lines of the PIO
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

 

Comments

This function controls the output (driving) data of the 8 line PIO device.

Example

The following example returns the output data register value:

 

BYTE ucOuputData;

Gx6256PioGetOutputData (nHandle, &ucOutputData, &nStatus);

 

See Also

Gx6192/Gx6256/Gx6864PioGetOutputData, Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioGetOutputEnable,  GxSWGetErrorString