DUNE: Uniform Navigational Environment  2019.02.0
Sensors::OEMX::DriverOEMX Class Reference

Classes

struct  CTDData
 

Public Member Functions

 DriverOEMX (DUNE::Tasks::Task *task, SerialPort *uart, Poll poll)
 
 ~DriverOEMX (void)
 
bool initCTD (int numberSamples)
 
bool getInfoOfCTD ()
 
void getFirmwareVersion (std::string text)
 
std::string getInfoMount (std::string text)
 
bool sendCommand (const char *cmd, const char *reply)
 
bool haveNewData (int numberSensors)
 

Public Attributes

SerialPort * m_uart
 
Poll m_poll
 
CTDData m_ctdData
 

Constructor & Destructor Documentation

Sensors::OEMX::DriverOEMX::DriverOEMX ( DUNE::Tasks::Task task,
SerialPort *  uart,
Poll  poll 
)
inline

References m_poll, and m_uart.

Sensors::OEMX::DriverOEMX::~DriverOEMX ( void  )
inline

Member Function Documentation

void Sensors::OEMX::DriverOEMX::getFirmwareVersion ( std::string  text)
inline
std::string Sensors::OEMX::DriverOEMX::getInfoMount ( std::string  text)
inline

References DUNE::Tasks::Task::spew().

Referenced by getInfoOfCTD().

bool Sensors::OEMX::DriverOEMX::haveNewData ( int  numberSensors)
inline
bool Sensors::OEMX::DriverOEMX::initCTD ( int  numberSamples)
inline
bool Sensors::OEMX::DriverOEMX::sendCommand ( const char *  cmd,
const char *  reply 
)
inline

Member Data Documentation

Poll Sensors::OEMX::DriverOEMX::m_poll

Interrupt/Poll for serial port.

Referenced by DriverOEMX(), and getInfoOfCTD().

SerialPort* Sensors::OEMX::DriverOEMX::m_uart

Serial port.

Referenced by DriverOEMX(), getInfoOfCTD(), haveNewData(), initCTD(), and sendCommand().

Collaboration diagram for Sensors::OEMX::DriverOEMX:
Collaboration graph