Writes PIO output value to output register
Gx6256PioGetOutputData (nHandle, ucOutputData, pnStatus)
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. |
This function controls the output (driving) data of the 8 line PIO device.
The following example sets all 8 IO lines to generate a logic HI:
Gx6256PioSetOutputEnable (nHandle, 0xFF &nStatus);
Gx6256PioSetOutputData (nHandle, 0xFF &nStatus);
Gx6192/Gx6256/Gx6864PioGetOutputData, Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioGetOutputEnable, GxSWGetErrorString