DlnGpioPinGetVal() Function
Syntax
- C/C++
-
DLN_RESULT DlnGpioPinGetVal( HDLN handle, uint8_t pin, uint8_t* value );
The DlnGpioPinGetVal() function retrieves the current value on the specified GPIO pin.
Parameters:
- handle
- A handle to the DLN-series adapter.
- pin
- A pin to get the value from.
- value
- A pointer to an unsigned 8-bit integer. This integer will be filled with the pin value after the function execution.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | The current pin value has been successfully retrieved. |
| DLN_RES_INVALID_PIN_NUMBER | Invalid pin number was specified. |
| DLN_RES_PIN_NOT_CONNECTED_TO_MODULE | The pin is not assigned to the GPIO module of the adapter and its value cannot be retrieved. |
This function is defined in the dln_gpio.h file.
2006-2012