You can configure most of the DLN-series adapter pins as general-purpose digital inputs. Call the DlnGpioPinSetDirection() [1] function and pass 0 for the direction parameter to configure the GPIO pin as a digital input. You can call this function either before or after the pin is assigned to the GPIO module by using the DlnGpioPinEnable() [2] function.
You can check a pin direction by using the DlnGpioPinGetDirection() [3] function.
The default pin direction is set to input (value 0).
To check the value on the pin, use the DlnGpioPinGetVal() [4] function.
For digital inputs, you can use the following features:
Digital Input Events [5];
Debounce Filter [6];
Use the following GPIO Interface functions to control and monitor input pins:
Configures a pin as a digital input. Pass 0 for the direction
parameter.
Retrieves the value on the I/O line.