gpio_set_debounce()

Set the GPIO debounce

Synopsis:

#include <hw/gpio_api.h>

int32_t gpio_set_debounce( int32_t gpio_fd,
                           gpio_header_t hdr,
                           gpio_enable_t itype );

Arguments:

gpio_fd
The file descriptor of a GPIO device.
hdr
The GPIO header identifying a GPIO pin.
enable
The GPIO debounce.

Description:

The gpio_set_debounce() function sets the GPIO debounce of a pin.

Returns:

0 on success, or -1 if an error occurs (errno is set).

Errors:

Any error value that MsgSend() can return, or:

EINVAL
The reply value is outside the int32_t range.
Page updated: