Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/can/1.0/default/
DCanBusSlcan.cpp30 namespace slcanprotocol { namespace
72 const auto lookupIt = slcanprotocol::kBitrateCommands.find(kBitrate); in preUp()
73 if (lookupIt == slcanprotocol::kBitrateCommands.end()) { in preUp()
135 if (write(mFd.get(), slcanprotocol::kOpenCommand.c_str(), in preUp()
136 slcanprotocol::kOpenCommand.length()) <= 0) { in preUp()
142 if (ioctl(mFd.get(), TIOCSETD, &slcanprotocol::kSlcanDiscipline) < 0) { in preUp()
153 if (ioctl(mFd.get(), TIOCSETD, &slcanprotocol::kDefaultDiscipline) < 0) { in postDown()
159 if (write(mFd.get(), slcanprotocol::kCloseCommand.c_str(), in postDown()
160 slcanprotocol::kCloseCommand.length()) <= 0) { in postDown()
/hardware/interfaces/automotive/can/aidl/default/
DCanBusSlcan.cpp35 namespace slcanprotocol { namespace
77 const auto lookupIt = slcanprotocol::kBitrateCommands.find(kBitrate); in preUp()
78 if (lookupIt == slcanprotocol::kBitrateCommands.end()) { in preUp()
140 if (!WriteStringToFd(slcanprotocol::kOpenCommand, mFd)) { in preUp()
146 if (ioctl(mFd.get(), TIOCSETD, &slcanprotocol::kSlcanDiscipline) < 0) { in preUp()
157 if (ioctl(mFd.get(), TIOCSETD, &slcanprotocol::kDefaultDiscipline) < 0) { in postDown()
163 if (!WriteStringToFd(slcanprotocol::kCloseCommand, mFd)) { in postDown()