Searched refs:busname (Results 1 – 2 of 2) sorted by relevance
74 static sp<ICanBus> tryOpen(const std::string& busname) { in tryOpen() argument75 auto bus = ICanBus::tryGetService(busname); in tryOpen()81 auto ret = manager->get(ICanBus::descriptor, busname).withDefault(nullptr); in tryOpen()84 std::cerr << "WARNING: bus " << busname << " is not registered in device manifest, " in tryOpen()90 static int candump(const std::string& busname) { in candump() argument91 auto bus = tryOpen(busname); in candump()93 std::cerr << "Bus " << busname << " is not available" << std::endl; in candump()100 bus->listen({}, new CanMessageListener(busname), hidl_utils::fill(&result, &chnd)).assertOk(); in candump()
42 static sp<ICanBus> tryOpen(const std::string& busname) { in tryOpen() argument43 auto bus = ICanBus::tryGetService(busname); in tryOpen()49 auto ret = manager->get(ICanBus::descriptor, busname).withDefault(nullptr); in tryOpen()52 std::cerr << "WARNING: bus " << busname << " is not registered in device manifest, " in tryOpen()58 static int cansend(const std::string& busname, const V1_0::CanMessage& msg) { in cansend() argument59 auto bus = tryOpen(busname); in cansend()61 std::cerr << "Bus " << busname << " is not available" << std::endl; in cansend()138 std::string busname(argv[0]); in main() local145 return cansend(busname, *canmsg); in main()