CARMA C++
DirectCan.h
Go to the documentation of this file.
1 
9 #ifndef CARMA_CANBUS_DIRECTCAN_H
10 #define CARMA_CANBUS_DIRECTCAN_H
11 
12 // Carma Includes
13 #include "carma/canbus/CanIo.h"
14 #include "carma/canbus/Message.h"
15 #include "carma/util/IPQwriter.h"
16 #include "carma/util/IPQreader.h"
17 
18 namespace carma {
19 namespace canbus {
20 
65  class DirectCan : public CanIo {
66  public:
67 
76  DirectCan();
77 
81  ~DirectCan();
82 
96 
112 
130  void postMessage(
131  const carma::canbus::Message &msg,
132  carma::canbus::txPriorityType prio = carma::canbus::NORMAL);
133 
134  private:
135 
138 
139  }; // End of class DirectCan
140 } // End of namespace canbus
141 } // End of namespace carma
142 #endif
Declaration of carma::canbus::Message class.
Class to encapsulate a CAN message.
Definition: Message.h:21
Message getMessage()
Get a message from the CAN Message IPQ.
DirectCan()
Constructor.
Declaration of carma::canbus::CanIo interface.
void postMessage(const carma::canbus::Message &msg, carma::canbus::txPriorityType prio=carma::canbus::NORMAL)
Post a message to the CAN bus.
The DirectCan class is intended for use as a way to access the CANbus from multiple separate processe...
Definition: DirectCan.h:65
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Definition: JanzCanIo.h:24
~DirectCan()
Destructor.
IPQ (InterProcessQueue) provides a generic way for information to be shared between processes or thre...
Definition: JanzCanIo.h:23
txPriorityType
CAN Tx priority type.
Definition: Types.h:194
unsigned int idType
Type for full 29 bit CAN id.
Definition: Types.h:60
CanIo interface.
Definition: CanIo.h:22