Returns the value of the PIO output register.
Gx6188PioGetOutputData (nHandle, pwOutputData, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6188 board. |
pwOutputData |
PWORD |
Bit field that represents the 14 output lines of the PIO. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function controls the output (driving) data of the 14 line PIO device. The value of GPIO0 is returned to the least significant bit of pwOutputData and the value of GPIO13 is store in bit 13. Bits 14 and 15 of pwOutputData should not be used.
The following example returns the output data register value:
WORD wOutputData;
Gx6188PioGetOutputData (nHandle, &wOutputData, &nStatus);
Gx6188PioSetOutputData, Gx6188PioSetOutputEnable, Gx6188PioGetOutputEnable, GxSWGetErrorString