DlnGpioPinDebounceEnable() Function

Syntax

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

The DlnGpioPinDebounceEnable() function enables debounce filtering for the specified pin.

Parameters:

handle
A handle to the DLN-series adapter.
pin
A number of the pin to be configured.

Results:

Result Description
DLN_RES_SUCCESS Debounce filter has been successfully activated.
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.