Gx6192/Gx6256/Gx6864PioReadInput

Purpose

Reads PIO sampled value from input register

Syntax

Gx6256PioReadInput(nHandle, pucInputData, pnStatus)

Parameters

Name
Type
Comments
nhandle
SHORT
Handle to a GX6192/GX6256/GX6864 board.
pucInputData
PBYTE
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 reads the last sampled value from the input register.

Example

The following example reads all 8 input lines from the PIO:

 

BYTE ucInputData;

Gx6256PioReadINput (nHandle, &ucInputData &nStatus);

 

See Also

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