Lines Matching full:line
18 line = gpiod::find_line(namedGpio); in GPIOInterface()
19 if (!line) in GPIOInterface()
21 throw std::runtime_error("Line does not exist: " + namedGpio); in GPIOInterface()
27 std::string("Failed to find line: ") + e.what()); in GPIOInterface()
39 return line.name(); in getName()
48 if (!line) in read()
50 log<level::ERR>("Failed line"); in read()
51 throw std::runtime_error{std::string{"Failed to find line"}}; in read()
56 line.request({__FUNCTION__, gpiod::line_request::DIRECTION_INPUT, in read()
60 value = line.get_value(); in read()
65 std::format("Failed to get_value of GPIO line: {}", e.what()) in read()
67 line.release(); in read()
71 line.release(); in read()
75 log<level::ERR>("Failed to request GPIO line", in read()
87 if (!line) in write()
89 log<level::ERR>("Failed line"); in write()
90 throw std::runtime_error{std::string{"Failed to find line"}}; in write()
95 line.request({__FUNCTION__, gpiod::line_request::DIRECTION_OUTPUT, in write()
99 line.release(); in write()
103 log<level::ERR>("Failed to set GPIO line", entry("MSG=%s", e.what()), in write()