Sets the selected digital port to default.
Gx3788PioResetPort (nHandle, nPort, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3788 board. |
nPort |
SHORT |
Select the digital port to get:0. GX3788_PIO_PORT0: Digital Port 0.1. GX3788_PIO_PORT1: Digital Port 1.2. GX3788_PIO_PORT2: Digital Port 2. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function sets all channel output values to 0 and all channel directions to input within the selected port.
The following example resets digital port 0:
SHORT nStatus;
Gx3788PioResetPort (nHandle, GX3788_PIO_PORT0, &nStatus);
Gx3788PioReadPort, Gx3788PioReadPortChannel, Gx3788PioResetPortChannel, Gx3788PioSetPort, Gx3788PioSetPortChannel, Gx3788PioSetPortChannelDirection, Gx3788PioSetPortDirection, GxFpgaGetErrorString