Returns the PIO output enable (tri-state) value of the output register
Gx6256PioGetOutputEnable (nHandle, pucOutputEnable, pnStatus)
Name |
Type |
Comments |
nhandle |
SHORT |
Handle to a GX6192/GX6256/GX6864 board. |
pucOutputEnable |
PBYTE |
Bit field that represents the 8 enable (tri-state) 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 returns the output enable (tri-state) control data:
BYTE ucOutputEnable
Gx6256PioGetOutputEnable (nHandle, &ucOutputEnable, &nStatus);
Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioSetOutputData, Gx6192/Gx6256/Gx6864PioGetOutputData, GxSWGetErrorString