DlnGpioPortGetVal() Function
Syntax
- C/C++
-
DLN_RESULT DlnGpioPortGetVal( HDLN handle, uint8_t port, uint8_t* values );
The DlnGpioPortGetVal() function retrieves current level on the I/O lines from the specified port. This function returns the level on an I/O line regardless of its configuration, whether it is configured as a GPIO input or output or even not connected to the GPIO module at all.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A port to get pin values from.
- values
- A pointer to an unsigned 8-bit integer. This integer will be filled with the pin values after function execution.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | GPIO port values have been successfully retrieved. |
This function is defined in the dln_gpio.h file.
2006-2012