Returns a bitfield containing the PIO’s output-enabled channels.
Gx6188PioGetOutputEnable (nHandle, pwOutputEnable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6188 board. |
pwOutputEnable |
PWORD |
Bit field that represents the 14 enable (tri-state) control lines of the PIO. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function reads the tri-state data of the 14-line PIO device. If the LSB (bit 0) is set to 1, then GPIO0 has been configured to drive a logic level of 0 or 1. Bits 14 and 15 of pwOutputEnable should not be used.
The following example returns the output enable (tri-state) control data:
WORD wOutputEnable
Gx6188PioGetOutputEnable (nHandle, &wOutputEnable, &nStatus);
Gx6188PioSetOutputEnable, Gx6188PioSetOutputData, Gx6188PioGetOutputData, GxSWGetErrorString