DUNE: Uniform Navigational Environment
2019.02.0
|
Public Member Functions | |
RadioDriver (RadioConfParam args, Tasks::Task *taskp=NULL) | |
virtual | ~RadioDriver (void) |
virtual int | configDevice (void)=0 |
virtual void | process (const std::string msg)=0 |
bool | processNewReport () |
bool | newRxData (std::string &rx_data) |
void | clearNewRxData () |
virtual void | sendString (std::string &data)=0 |
bool | processCrc (void) |
bool | sendData (std::string txData) |
int | maxDataPacket () |
bool | readSentence (void) |
bool | openSocket (void) |
int | connectToDevice () |
void | processInputInit (double timeout=0.05) |
bool | processInput (double timeout=0.05) |
Public Attributes | |
DeviceReports | device_reports |
Protected Attributes | |
Tasks::Task * | task |
IMC::DevDataText | m_dev_data |
IO::Handle * | m_handle |
std::string | m_line |
std::string | m_last_line |
RadioConfParam | radioParams |
std::queue< std::string > | driverRxRata |
|
inline |
|
inlinevirtual |
Default destructor.
References m_handle.
|
inline |
References driverRxRata.
Referenced by Transports::Radio::Task::hardwareUpdateStateMachine().
|
pure virtual |
Implemented in Transports::Radio::RadioRFDXXXxPtP, and Transports::Radio::Radio3dr.
Referenced by Transports::Radio::Task::hardwareUpdateStateMachine().
|
inline |
|
inline |
References device_reports, and Transports::Radio::DeviceReports::tdm_timing_max_data_packet.
Referenced by Transports::Radio::Task::hardwareUpdateStateMachine().
|
inline |
References driverRxRata.
Referenced by Transports::Radio::Task::onMain().
|
inline |
References m_handle, radioParams, and Transports::Radio::RadioConfParam::uart_dev.
Referenced by connectToDevice().
|
pure virtual |
Implemented in Transports::Radio::RadioRFDXXXxPtP, and Transports::Radio::Radio3dr.
Referenced by readSentence().
|
inline |
References Transports::Radio::DeviceReports::data_report, device_reports, and task.
Referenced by processNewReport().
|
inline |
References readSentence().
Referenced by Transports::Radio::Task::onMain().
|
inline |
References readSentence().
Referenced by Transports::Radio::Radio3dr::sendCommandAndWait(), and Transports::Radio::RadioRFDXXXxPtP::sendCommandAndWait().
|
inline |
|
inline |
Read sentence.
References m_handle, m_last_line, m_line, process(), and processNewReport().
Referenced by processInput(), and processInputInit().
|
inline |
References sendString(), and task.
Referenced by Transports::Radio::Task::onMain().
|
pure virtual |
Implemented in Transports::Radio::RadioRFDXXXxPtP, and Transports::Radio::Radio3dr.
Referenced by sendData().
DeviceReports Transports::Radio::RadioDriver::device_reports |
|
protected |
Referenced by clearNewRxData(), newRxData(), and processNewReport().
|
protected |
|
protected |
|
protected |
last line.
Referenced by Transports::Radio::Radio3dr::DeviceVerifyConf(), Transports::Radio::RadioRFDXXXxPtP::DeviceVerifyConf(), and readSentence().
|
protected |
Current line.
Referenced by Transports::Radio::Radio3dr::DeviceVerifyConf(), Transports::Radio::RadioRFDXXXxPtP::DeviceVerifyConf(), and readSentence().
|
protected |
radio Params
Referenced by connectToDevice(), Transports::Radio::Radio3dr::DeviceVerifyConf(), Transports::Radio::RadioRFDXXXxPtP::DeviceVerifyConf(), and openSocket().
|
protected |
Referenced by Transports::Radio::Radio3dr::configDevice(), Transports::Radio::RadioRFDXXXxPtP::configDevice(), Transports::Radio::Radio3dr::DeviceVerifyConf(), Transports::Radio::RadioRFDXXXxPtP::DeviceVerifyConf(), Transports::Radio::Radio3dr::process(), Transports::Radio::RadioRFDXXXxPtP::process(), processCrc(), Transports::Radio::Radio3dr::saveIfExpectedCmdIs(), Transports::Radio::RadioRFDXXXxPtP::saveIfExpectedCmdIs(), Transports::Radio::Radio3dr::sendCommand(), Transports::Radio::RadioRFDXXXxPtP::sendCommand(), and sendData().