Sets PIO channels to output enabled.
Gx6188PioSetOutputEnable (nHandle, wOutputEnable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6188 board. |
wOutputEnable |
WORD |
Bit field that represents the 14 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 14-line PIO device. If the LSB (bit 0) is set to 1, then GPIO0 will be output-enabled. The function Gx6188SetOutputData can be used to configure the logic level of output-enabled channels. Bits 14 and 15 of pwOutputEnable should not be used.
The following example sets all 14 lines to output enabled:
Gx6188PioSetOutputEnable (nHandle, 0x3FFF, &nStatus);
Gx6188PioGetOutputEnable, Gx6188PioSetOutputData, Gx6188PioGetOutputData, GxSWGetErrorString