DlnGpioSetDebounce() Function

 DLN_RESULT DlnGpioSetDebounce(
    HDLN handle, 
    uint32_t* duration
 );

The DlnGpioSetDebounce() function specifies the minimum duration of the pulse to be registered (the Debounce interval). The duration is specified in µs from 1µs up to 4,294,967,295µs (~1h 10m). This value will be approximated (increased) as the closest debounce duration supported by the adapter. See Debounce Filter for details.

Parameters:

handle
A handle to the DLN-series adapter.
duration
A pointer to an unsigned 32-bit integer. This integer will be filled with the value, approximated (increased) as the closest debounce duration supported by the adapter after the function execution. See Debounce Filter for details

Results:

Result Description
DLN_RES_SUCCESS The debounce interval has been successfully retrieved.
DLN_RES_COMMAND_NOT_SUPPORTED The adapter does not support debounce filtering.

This function is defined in the dln_gpio.h file.