DlnGpioPinPullupEnable() Function

Syntax

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

The DlnGpioPinPullupEnable() function activates an embedded pull-up resistor for the specified pin.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A number of the pin to enable a pull-up resistor for.

Results:

Result Description
DLN_RES_SUCCESS Pull-up resistor has been successfully activated.
DLN_RES_INVALID_PIN_NUMBER Invalid pin number was specified.

This function is defined in the dln_gpio.h file.