Sets the selected digital channel to default.
Gx3788PioResetPortChannel (nHandle, nPort, nChannel, 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. |
nChannel |
SHORT |
Selects the channel within the selected port to reset (0-31). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function set the selected digital channel to default, channel output valve to 0 and direction to input.
The following example resets digital port 0, channel 15:
SHORT nStatus;
Gx3788PioResetPortChannel (nHandle, GX3788_PIO_PORT0, 15, &nStatus);
Gx3788PioReadPort, Gx3788PioReadPortChannel, Gx3788PioResetPort, Gx3788PioSetPort, Gx3788PioSetPortChannel, Gx3788PioSetPortChannelDirection, Gx3788PioSetPortDirection, GxFpgaGetErrorString