Lines Matching +full:multi +full:- +full:line
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
9 #include <phosphor-logging/lg2.hpp>
33 CLI::App app{"Monitor GPIO line for requested state change"}; in main()
38 app.add_option("-c,--config", gpioFileName, "Name of config json file") in main()
39 ->required() in main()
40 ->check(CLI::ExistingFile); in main()
58 return -1; in main()
69 /* GPIO Line message */ in main()
70 std::string lineMsg = "GPIO Line "; in main()
72 /* GPIO line */ in main()
73 gpiod_line* line = nullptr; in main() local
75 /* GPIO line configuration, default to monitor both edge */ in main()
85 /* multi targets to start */ in main()
90 /* If there is no line Name defined then gpio num nd chip in main()
97 lg2::error("Failed to find line name or gpio number: {FILE}", in main()
99 return -1; in main()
107 /* Get the GPIO line */ in main()
108 line = gpiod_line_get(chipIdStr.c_str(), gpioNum); in main()
112 /* Find the GPIO line */ in main()
115 line = gpiod_line_find(lineName.c_str()); in main()
118 if (line == nullptr) in main()
135 return -1; in main()
138 config.request_type = findEvent->second; in main()
156 /* Parse out the targets argument if multi-targets are needed.*/ in main()
164 line, config, io, target, targets, lineMsg, flag)); in main()