Home
last modified time | relevance | path

Searched refs:busname (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/automotive/can/1.0/tools/
Dcanhaldump.cpp74 static sp<ICanBus> tryOpen(const std::string& busname) { in tryOpen() argument
75 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() argument
91 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()
Dcanhalsend.cpp42 static sp<ICanBus> tryOpen(const std::string& busname) { in tryOpen() argument
43 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() argument
59 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() local
145 return cansend(busname, *canmsg); in main()