gpio_get_pull()

Get the GPIO pull configuration

Synopsis:

#include <hw/gpio_api.h>

gpio_pull_t gpio_get_pull( int32_t gpio_fd,
                           gpio_header_t hdr );

Arguments:

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

Description:

The gpio_get_pull() function gets the GPIO pull configuration of a pin.

Returns:

A valid GPIO pull configuration on success, or -1 if an error occurs (errno is set).

Errors:

Any error value that MsgSend() can return.

Page updated: