Gx5733SetPortBit (nHandle, nPort, nBit, ucValue, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Digital I/O port number: 1-3. |
nBit |
SHORT |
Port channel number: 0 to 31. |
ucValue |
BYTE |
Channel value: 0 for low state and 1 for hi state. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example set port 1, bit 30 value to hi state:
Gx5733GetPort (nHandle, 1, 30, 1, &nStatus);