Writes PIO output enable (tristate) value to the output register
Gx6256PioSetOutputEnable (nHandle, ucOutputEnable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6256/GX6864/GX6192 board. |
ucOutputEnable |
BYTE |
Bit field that represents the 8 enable (tristate) control lines of the PIO |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function controls the tri-state data of the 8 line PIO device.
The following example sets all 8 lines to output enabled:
Gx6256PioSetOutputEnable (nHandle, 0xFF, &nStatus);
Gx6192/Gx6256/Gx6864PioGetOutputEnable, Gx6192/Gx6256/Gx6864PioSetOutputData, Gx6192/Gx6256/Gx6864PioGetOutputData, GxSWGetErrorString