gpio_open()
Open a GPIO device
Synopsis:
#include <hw/gpio_api.h>
int32_t gpio_open( char *path );
Arguments:
- path
- A pointer to the device path string.
Description:
The gpio_open() function opens the GPIO at the specified path.
Returns:
A file descriptor on success, or -1 if an error occurs (errno is set).
Errors:
Any error value that open() can return, or:
- EINVAL
- The path is NULL.
Page updated:
