gpio_get_dir()
Get the GPIO direction
Synopsis:
#include <hw/gpio_api.h>
gpio_dir_t gpio_get_dir( 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_dir() function gets the GPIO direction of a pin.
Returns:
A valid GPIO direction value on success, or -1 if an error occurs (errno is set).
Errors:
Any error value that MsgSend() can return.
Page updated:
