DUNE: Uniform Navigational Environment  2020.01.0
Power::BATMANv2::DriverBatMan Class Reference

Classes

struct  BatManData
 

Public Member Functions

 DriverBatMan (DUNE::Tasks::Task *task, SerialPort *uart, Poll poll, int numberCell)
 
 ~DriverBatMan (void)
 
void resetStateNewData (void)
 
bool getVersionFirmware (void)
 
bool initBatMan (int cellNumber, float scale)
 
bool startAcquisition (void)
 
bool stopAcquisition (void)
 
bool sendCommand (const char *cmd, const char *reply)
 
void sendCommandNoRsp (const char *cmd)
 
bool haveNewData (void)
 
std::string getFirmwareVersion (void)
 

Public Attributes

SerialPort * m_uart
 
Poll m_poll
 
int m_numberCell
 
BatManData m_batManData
 

Constructor & Destructor Documentation

Power::BATMANv2::DriverBatMan::DriverBatMan ( DUNE::Tasks::Task task,
SerialPort *  uart,
Poll  poll,
int  numberCell 
)
inline

References resetStateNewData().

Power::BATMANv2::DriverBatMan::~DriverBatMan ( void  )
inline

Member Function Documentation

std::string Power::BATMANv2::DriverBatMan::getFirmwareVersion ( void  )
inline
bool Power::BATMANv2::DriverBatMan::getVersionFirmware ( void  )
inline
bool Power::BATMANv2::DriverBatMan::initBatMan ( int  cellNumber,
float  scale 
)
inline
void Power::BATMANv2::DriverBatMan::resetStateNewData ( void  )
inline
bool Power::BATMANv2::DriverBatMan::sendCommand ( const char *  cmd,
const char *  reply 
)
inline
void Power::BATMANv2::DriverBatMan::sendCommandNoRsp ( const char *  cmd)
inline
bool Power::BATMANv2::DriverBatMan::startAcquisition ( void  )
inline
bool Power::BATMANv2::DriverBatMan::stopAcquisition ( void  )
inline

Member Data Documentation

int Power::BATMANv2::DriverBatMan::m_numberCell

number of cell to read

Referenced by haveNewData().

Poll Power::BATMANv2::DriverBatMan::m_poll

Interrupt/Poll for serial port.

SerialPort* Power::BATMANv2::DriverBatMan::m_uart

Serial port.

Collaboration diagram for Power::BATMANv2::DriverBatMan:
Collaboration graph