gpio_set_pull()

Set the GPIO pull configuration

Synopsis:

#include <hw/gpio_api.h>

int32_t gpio_set_pull( int32_t gpio_fd,
                       gpio_header_t hdr,
                       gpio_enable_t enable );

Arguments:

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

Description:

The gpio_set_pull() function sets the GPIO pull configuration 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: