43 #ifndef _MLAB_CANMESSAGEVIEWERPLUGIN_H_ 44 #define _MLAB_CANMESSAGEVIEWERPLUGIN_H_ 47 #include <boost/thread/mutex.hpp> 50 #include <QTableWidget> 55 namespace mira {
namespace can {
66 (
"Name",
"CAN message viewer")
68 (
"Description",
"Lists all received can messages and displays info")
69 (
"Title",
"Messages"));
83 void addRow(
const QString& pdo);
122 template <
typename Reflector>
125 r.member(
"Start",
start,
"");
126 r.member(
"ID",
ID,
"");
127 r.member(
"Length",
length,
"");
void showContextMenu(const QPoint &pos)
void reflect(Reflector &r)
Definition: CANMessageViewerPlugin.h:123
virtual void initialize()
This method must be implemented for each CAN tool.
Definition: CANMessageViewerPlugin.h:115
Definition: CANMessageViewerPlugin.h:94
Time last
Definition: CANMessageViewerPlugin.h:109
QList< QueueEntry > mCANMessageQueue
Definition: CANMessageViewerPlugin.h:99
boost::mutex mUpdateMutex
Definition: CANMessageViewerPlugin.h:89
void addRow(const QString &pdo)
std::string ID
Definition: CANMessageViewerPlugin.h:120
std::string description
Definition: CANMessageViewerPlugin.h:119
void onCanMessage(const can::CANMessage &message, const Time ×tamp)
void createCombo(int row)
uint32 minInterval
Definition: CANMessageViewerPlugin.h:110
MessageInfo(const Time &t=Time::now())
Definition: CANMessageViewerPlugin.h:103
QTableWidget * mPDOTable
Definition: CANMessageViewerPlugin.h:90
~CANMessageViewerPlugin()
Time timestamp
Definition: CANMessageViewerPlugin.h:97
uint32 messageRecvListenerId
Definition: CANMessageViewerPlugin.h:88
static Time now() static Time eternity()
QTimer * mUpdateTimer
Definition: CANMessageViewerPlugin.h:92
Definition: CANMessageViewerPlugin.h:101
QTableWidget * mPDOReadTable
Definition: CANMessageViewerPlugin.h:91
A definition of a CAN message.
Definition: CANDefs.h:105
std::map< uint32, MessageInfo > mPDOEntries
Definition: CANMessageViewerPlugin.h:113
can::CANMessage message
Definition: CANMessageViewerPlugin.h:96
int length
Definition: CANMessageViewerPlugin.h:118
uint32 maxInterval
Definition: CANMessageViewerPlugin.h:111
int start
Definition: CANMessageViewerPlugin.h:117
CAN message viewer plugin that displays info about CAN messages.
Definition: CANMessageViewerPlugin.h:62
uint32 count
Definition: CANMessageViewerPlugin.h:108