DlnGpioPinDebounceIsEnabled() Function

 DLN_RESULT DlnGpioPinOpendrainIsEnabled(
    HDLN handle,
    uint8_t pin,
    uint8_t* enabled
 );

The DlnGpioPinDebounceIsEnabled() function informs whether the debounce filtering is currently enabled for the specified pin.

Parameters:

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

A pointer to an unsigned 8-bit integer. The integer will be filled with current pin configuration after the function execution. The following values are available:

Value Description
1 Debounce filtering is enabled.
0 Debounce filtering is disabled.

Results:

Result Description
DLN_RES_SUCCESS Debounce filter state has been successfully retrieved.
DLN_RES_INVALID_PIN_NUMBER Invalid pin number was specified.
DLN_RES_COMMAND_NOT_SUPPORTED Debounce filtering is not supported by the adapter.

This function is defined in the dln_gpio.h file.