Returns the PIO output value from the output register
Gx6256PioGetOutputData (nHandle, pucOutputData, pnStatus)
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. |
This function controls the output (driving) data of the 8 line PIO device.
The following example returns the output data register value:
BYTE ucOuputData;
Gx6256PioGetOutputData (nHandle, &ucOutputData, &nStatus);
Gx6192/Gx6256/Gx6864PioGetOutputData, Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioGetOutputEnable, GxSWGetErrorString