Witmotion IMU Library  1.3.1~dev_4684448
Open source UART communication library for sensor devices manufactured by WitMotion Shenzhen Co.,Ltd
witmotion::QBaseSerialWitmotionSensorReader Class Reference
Inheritance diagram for witmotion::QBaseSerialWitmotionSensorReader:
Inheritance graph
Collaboration diagram for witmotion::QBaseSerialWitmotionSensorReader:
Collaboration graph

Public Member Functions

void SetBaudRate (const QSerialPort::BaudRate &rate)
 
 QBaseSerialWitmotionSensorReader (const QString device, const QSerialPort::BaudRate rate)
 
virtual void RunPoll ()
 Public abstract slot to be implemented in the derived class. The common use is to start the polling timer thread for the sensors after Qt event loop is started.
 
virtual void Suspend ()
 
void ValidatePackets (const bool value)
 
void SetSensorPollInterval (const uint32_t ms)
 
void SetSensorTimeout (const uint32_t ms)
 

Protected Types

enum  read_state_t {
  rsUnknown ,
  rsClear ,
  rsRead
}
 

Protected Member Functions

virtual void ReadData ()
 Protected abstract slot to be implemented in the derived class. The common usage is as a callback for the polling timer thread.
 
virtual void Configure ()
 
virtual void SendConfig (const witmotion_config_packet &packet)
 Public abstract slot to be implemented in the derived class. More...
 

Protected Attributes

QTextStream ttyout
 
QTimer * poll_timer
 
QMetaObject::Connection timer_connection
 
QMetaObject::Connection config_connection
 
enum witmotion::QBaseSerialWitmotionSensorReader::read_state_t read_state
 
witmotion_typed_packets packets
 
witmotion_typed_bytecounts counts
 
witmotion_packet_id read_cell
 
volatile bool configuring
 
std::list< witmotion_config_packetconfiguration
 

Additional Inherited Members

- Public Slots inherited from witmotion::QAbstractWitmotionSensorReader
- Signals inherited from witmotion::QAbstractWitmotionSensorReader
void Acquired (const witmotion_datapacket &packet)
 Signal function to be emitted when the data packet is acquired by the polling thread or process. Can only be redefined, not overridden in the class hierarchy.
 
void Error (const QString &description)
 Signal function to be emitted when the internal error reported in the polling thread or process. Can only be redefined, not overridden in the class hierarchy.
 
- Protected Slots inherited from witmotion::QAbstractWitmotionSensorReader

Member Function Documentation

◆ SendConfig()

void witmotion::QBaseSerialWitmotionSensorReader::SendConfig ( const witmotion_config_packet packet)
protectedvirtual
Parameters
packetaccepts the witmotion_config_packet object for being sent to the sensor configuration registers.

Implements witmotion::QAbstractWitmotionSensorReader.


The documentation for this class was generated from the following files: