Reads PIO sampled value from input register
Gx6256PioReadInput(nHandle, pucInputData, pnStatus)
Name |
Type |
Comments |
nhandle |
SHORT |
Handle to a GX6192/GX6256/GX6864 board. |
pucInputData |
PBYTE |
Bit field that represents the 8 input lines of the PIO |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function reads the last sampled value from the input register.
The following example reads all 8 input lines from the PIO:
BYTE ucInputData;
Gx6256PioReadINput (nHandle, &ucInputData &nStatus);
Gx6192/Gx6256/Gx6864PioSetOutputData, Gx6192/Gx6256/Gx6864PioGetOutputData, Gx6192/Gx6256/Gx6864PioSetOutputEnable, Gx6192/Gx6256/Gx6864PioGetOutputEnable, GxSWGetErrorString