gpio_get_enable()

Get the GPIO enable state

Synopsis:

#include <hw/gpio_api.h>

gpio_enable_t gpio_get_enable( 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_enable() function gets the GPIO enable state of a pin.

Returns:

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

Errors:

Any error value that MsgSend() can return.

Page updated: