gpio_get_fsel()

Get the GPIO function select value

Synopsis:

#include <hw/gpio_api.h>

gpio_itype_t gpio_get_fsel( 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_fsel() function gets the GPIO function select value of a pin.

Returns:

A valid GPIO function select value on success, or -1 if an error occurs (errno is set).

Errors:

Any error value that MsgSend() can return.

Page updated: