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()
46 if (!line) in read()
48 lg2::error("Failed line in GPIOInterface::read()"); in read()
49 throw std::runtime_error{std::string{"Failed to find line"}}; in read()
54 line.request({__FUNCTION__, gpiod::line_request::DIRECTION_INPUT, in read()
58 value = line.get_value(); in read()
62 lg2::error("Failed to get_value of GPIO line: {ERROR}", "ERROR", e); in read()
63 line.release(); in read()
67 line.release(); in read()
71 lg2::error("Failed to request GPIO line: {MSG}", "MSG", e); in read()
80 if (!line) in write()
82 lg2::error("Failed line in GPIOInterface::write"); in write()
83 throw std::runtime_error{std::string{"Failed to find line"}}; in write()
88 line.request({__FUNCTION__, gpiod::line_request::DIRECTION_OUTPUT, in write()
92 line.release(); in write()
96 lg2::error("Failed to set GPIO line, MSG={MSG}, VALUE={VALUE}", "MSG", in write()