Gx5733SetPortByteDirection (nHandle, nPort, nByte, bInOut, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Digital I/O port number: 1-3 |
nByte |
SHORT |
Port byte number: 0-3, 0 for the port low order byte and 3 for the high order byte. |
bInOut |
BOOL |
Byte direction:0. (FALSE) – Input.1. (TRUE) – Output. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example set the byte direction of port 1, byte 3 to output:
Gx5733SetPortByteDirection (nHandle, 1, 3, TRUE, nStatus);