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