Lines Matching full:gpio
5 #include <linux/gpio.h>
12 namespace gpio namespace
22 * If the GPIO is an input or output
40 * Represents a GPIO.
42 * Currently supports reading a GPIO.
46 class GPIO class
49 GPIO() = delete;
50 GPIO(const GPIO&) = delete;
51 GPIO(GPIO&&) = default;
52 GPIO& operator=(const GPIO&) = delete;
53 GPIO& operator=(GPIO&&) = default;
54 ~GPIO() = default;
59 * @param[in] device - the GPIO device file
60 * @param[in] gpio - the GPIO number
61 * @param[in] direction - the GPIO direction
63 GPIO(const std::string& device, gpioNum_t gpio, Direction direction) : in GPIO() function in witherspoon::gpio::GPIO
64 device(device), gpio(gpio), direction(direction) in GPIO()
68 * Reads the GPIO value
70 * Requests the GPIO line if it hasn't been done already.
72 * @return Value - the GPIO value
77 * Sets the GPIO value to low or high
79 * Requests the GPIO line if it hasn't been done already.
87 * Requests a GPIO line from the GPIO device
95 * The GPIO device name, like /dev/gpiochip0
100 * The GPIO number
102 const gpioNum_t gpio; member in witherspoon::gpio::GPIO
105 * The GPIO direction
110 * File descriptor for the GPIO line
115 } // namespace gpio