gpio_set_enable()

Set the GPIO enable state

Synopsis:

#include <hw/gpio_api.h>

int32_t gpio_set_enable( 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 enable state.

Description:

The gpio_set_enable() function sets the GPIO enable state 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: