CARMA C++
|
#include <carma/canbus/CanOutput.h>
Public Member Functions | |
virtual void | postMessage (const carma::canbus::Message &msg, carma::canbus::txPriorityType prio=carma::canbus::NORMAL)=0 |
Post a CAN message. More... | |
CanOutput interface.
CanOutput is only allowed to post messages to the CAN. This is required to provide enforcement that only canbus::Master can read and process messages while allowing canbus::Device derivatives to post messages to the canbus.
Definition at line 26 of file CanOutput.h.
|
pure virtual |
Post a CAN message.
Send a carma::canbus::Message to a single or multiple CANbusses as specified by the Message::setBusId method. To send to all CAN busses use the carma::canbus::ALL_BUSSES constant.
msg | The carma::canbus::Message to post. |
prio | Priority of message. |
Implemented in carma::canbus::JanzCanIo, carma::canbus::DirectCan, carma::canbus::CanDio, carma::canbus::SocketCan, and carma::canbus::InetCan.