Lines Matching refs:ICanController
29 using ICanController = V1_0::ICanController; typedef
46 static int up(const std::string& busName, ICanController::InterfaceType type, in up()
50 auto ctrl = ICanController::getService(service); in up()
59 ICanController::BusConfig config = {}; in up()
64 using IfCfg = ICanController::BusConfig::InterfaceId; in up()
65 if (type == ICanController::InterfaceType::VIRTUAL) { in up()
67 } else if (type == ICanController::InterfaceType::SOCKETCAN) { in up()
71 } else if (type == ICanController::InterfaceType::SLCAN) { in up()
75 } else if (type == ICanController::InterfaceType::INDEXED) { in up()
87 if (upresult == ICanController::Result::OK) return 0; in up()
100 auto ctrl = ICanController::getService(service); in down()
111 static std::optional<ICanController::InterfaceType> parseInterfaceType(const std::string& str) { in parseInterfaceType()
112 if (str == "virtual") return ICanController::InterfaceType::VIRTUAL; in parseInterfaceType()
113 if (str == "socketcan") return ICanController::InterfaceType::SOCKETCAN; in parseInterfaceType()
114 if (str == "slcan") return ICanController::InterfaceType::SLCAN; in parseInterfaceType()
115 if (str == "indexed") return ICanController::InterfaceType::INDEXED; in parseInterfaceType()