DlnGpioPortGetOutVal() Function
Syntax
- C/C++
-
DLN_RESULT DlnGpioPortGetOutVal( HDLN handle, uint8_t port, uint8_t* values );
The DlnGpioPortGetOutVal() retrieves current output values for the GPIO pins from the specified port. This function returns values, stored in an internal latch buffer. If the pin is configured as an output, the returned value matches the current I/O line level.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A port to get pin output values from.
- values
- A pointer to an unsigned 8-bit integer. This integer will be filled with pin output values after function execution.
Results:
| Result | Description |
|---|---|
| DLN_RES_SUCCESS | Pin output values for the specified GPIO port have been successfully retrieved. |
This function is defined in the dln_gpio.h file.
2006-2012