DUNE: Uniform Navigational Environment
2020.01.0
|
Public Member Functions | |
Interface (IO::Handle *handle) | |
virtual | ~Interface (void) |
void | flush (void) |
FirmwareInfo | getFirmwareInfo (void) |
void | resetDevice (void) |
bool | sendFrame (Frame &frame, double timeout=1.0) |
void | setBootStop (bool value) |
Frame * | pop (void) |
unsigned | consume (void) |
DUNE::Hardware::UCTK::Interface::Interface | ( | IO::Handle * | handle | ) |
|
virtual |
|
inline |
References DUNE::Hardware::UCTK::Parser::parse(), and DUNE::IO::Handle::read().
|
inline |
References DUNE::IO::Handle::flush(), getFirmwareInfo(), resetDevice(), sendFrame(), and setBootStop().
FirmwareInfo DUNE::Hardware::UCTK::Interface::getFirmwareInfo | ( | void | ) |
|
inline |
void DUNE::Hardware::UCTK::Interface::resetDevice | ( | void | ) |
bool DUNE::Hardware::UCTK::Interface::sendFrame | ( | Frame & | frame, |
double | timeout = 1.0 |
||
) |
References DUNE::Hardware::UCTK::Frame::computeCRC(), DUNE::Hardware::UCTK::Frame::get(), DUNE::Hardware::UCTK::Frame::getData(), DUNE::Hardware::UCTK::Frame::getId(), DUNE::Hardware::UCTK::Frame::getPayload(), DUNE::Hardware::UCTK::Frame::getPayloadSize(), DUNE::Time::Counter< T >::getRemaining(), DUNE::Hardware::UCTK::Frame::getSize(), DUNE::Hardware::UCTK::FirmwareInfo::major, DUNE::Hardware::UCTK::FirmwareInfo::minor, DUNE::Hardware::UCTK::FirmwareInfo::name, DUNE::Time::Counter< T >::overflow(), DUNE::Hardware::UCTK::Parser::parse(), DUNE::Hardware::UCTK::FirmwareInfo::patch, DUNE::Hardware::UCTK::PKT_ID_ERR, DUNE::Hardware::UCTK::PKT_ID_NAME, DUNE::Hardware::UCTK::PKT_ID_VERSION, DUNE::IO::Poll::poll(), DUNE::IO::Handle::read(), DUNE::Hardware::UCTK::Frame::setId(), DUNE::Hardware::UCTK::Frame::setPayloadSize(), DUNE::Hardware::UCTK::Errors::translate(), and DUNE::IO::Handle::write().
Referenced by flush(), DUNE::Hardware::UCTK::Bootloader::program(), resetDevice(), and setBootStop().
void DUNE::Hardware::UCTK::Interface::setBootStop | ( | bool | value | ) |
References DUNE::Hardware::UCTK::PKT_ID_BOOT, sendFrame(), DUNE::Hardware::UCTK::Frame::set(), DUNE::Hardware::UCTK::Frame::setId(), and DUNE::Hardware::UCTK::Frame::setPayloadSize().
Referenced by DUNE::Hardware::UCTK::Bootloader::Bootloader(), flush(), and DUNE::Hardware::UCTK::Bootloader::~Bootloader().