The DlnGpioPinGetVal() function retrieves the current value on the specified GPIO pin.
DlnGpioPinGetVal()
DLN_RESULT DlnGpioPinGetVal( HDLN handle, uint8_t pin, uint8_t* value );
A handle to the DLN-series adapter.
A number of the pin which value you want to know.
A pointer to an unsigned 8-bit integer. After the function execution, this integer will be set to the pin value.
The function retrieved the current pin value successfully.
The pin number is not valid. Use the DlnGpioGetPinCount() function to find the maximum possible pin number.
The DlnGpioPinGetVal() function retrieves the value on the pin regardless of its direction. To check the GPIO pin direction, use the DlnGpioPinGetDirection() function. You can change the pin output value by using the DlnGpioPinSetOutVal() function.
The DlnGpioPinGetVal() function is declared in the dln_gpio.h file.
dln_gpio.h