Resets the specified digital I/O port.
Gx5732ResetPort (nHandle, nPort, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5732 board. |
nPort |
SHORT |
Digital I/O port number:0. GX5732_PORT0: Port 0.1. GX5732_PORT1: Port 1.2. GX5732_PORT2: Port 2.3. GX5732_PORT3: Port 3.4. GX5732_PORT4: Port 4.5. GX5732_PORT5: Port 5.6. GX5732_PORT6: Port 6. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
After the port is reset all port byte directions are set to input state.
The following example resets port 1:
Gx5732ResetPort (nHandle, GX5732_PORT1, &nStatus);