Gx6188PioGetOutputData

Purpose

Returns the value of the PIO output register.

Syntax

Gx6188PioGetOutputData (nHandle, pwOutputData, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6188 board.
pwOutputData
PWORD
Bit field that represents the 14 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 14 line PIO device. The value of GPIO0 is returned to the least significant bit of pwOutputData and the value of GPIO13 is store in bit 13.  Bits 14 and 15 of pwOutputData should not be used.

Example

The following example returns the output data register value:

 

WORD wOutputData;

Gx6188PioGetOutputData (nHandle, &wOutputData, &nStatus);

 

See Also

Gx6188PioSetOutputData, Gx6188PioSetOutputEnable, Gx6188PioGetOutputEnable, GxSWGetErrorString