gpio_close()

Close a GPIO device

Synopsis:

#include <hw/gpio_api.h>

int32_t gpio_close( int32_t gpio_fd );

Arguments:

gpio_fd
The file descriptor of a GPIO device.

Description:

The gpio_close() function closes the specified GPIO device file descriptor.

Returns:

0 on success, or -1 if an error occurs (errno is set).

Errors:

Any error value that close() can return.

Page updated: