Gx6192/Gx6256/Gx6864PioSetOutputData

Purpose

Writes PIO output value to output register

Syntax

Gx6256PioGetOutputData (nHandle, ucOutputData, pnStatus)

Parameters

Name
Type
Comments
nhandle
SHORT
Handle to a GX6256/GX6864/GX6192 board.Handle to a GX6256/GX6192 board.
ucInputData
BYTE
Bit field that represents the 8 input 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 sets all 8 IO lines to generate a logic HI:

 

Gx6256PioSetOutputEnable (nHandle, 0xFF &nStatus);

Gx6256PioSetOutputData (nHandle, 0xFF &nStatus);

 

See Also

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