DlnGpioPinPullupIsEnabled() Function

Syntax

C/C++
DLN_RESULT DlnGpioPinPullupIsEnabled(
    HDLN handle,
    uint8_t pin,
    uint8_t* enabled
 );
     

The DlnGpioPinPullupIsEnabled() function informs whether an embedded pull-up resistor is enabled for the specified pin.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A number of the pin to retrieve the information from.
enabled

A pointer to an unsigned 8-bit integer. The integer will be filled with current state of a pull-up resistor after the function execution. The following values are available:

Value Description
1 The pull-up resistor is enabled.
0 The pull-up resistor is disabled.

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.