DlnGpioPinSetOutVal() Function

Syntax

C/C++
 DLN_RESULT DlnGpioPinSetOutVal(
    HDLN handle,
    uint8_t pin, 
    uint8_t value
 );
     

The DlnGpioPinSetOutVal() function sets the output value for the specified GPIO pin. If the pin is an output, the value is applied immediately. If the pins is an input, the value is stored in the internal latch. This value will be applied when the pin becomes output.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A pin to be configured.
value
A pin output value to be set.

Results:

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

This function is defined in the dln_gpio.h file.