DlnGpioPinGetOutVal() Function

DLN_RESULT DlnGpioPinGetOutVal(
    HDLN handle,
    uint8_t pin, 
    uint8_t* value
 );

The DlnGpioPinGetOutVal() function retrieves the pin output value, set using the DlnGpioPinSetOutVal() function and stored in the internal latch. If the pin is not an output, the value is taken from the latch.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A pin to get the output value from.
value
A pointer to an unsigned 8-bit integer. This integer will be filled with the pin output value after the function execution.

Results:

Result Description
DLN_RES_SUCCESS The pin output value has been successfully retrieved.
DLN_RES_INVALID_PIN_NUMBER Invalid pin number was specified.

This function is defined in the dln_gpio.h file.