10 #ifndef CARMA_CANBUS_JANZMESSAGE_H
11 #define CARMA_CANBUS_JANZMESSAGE_H
21 typedef unsigned char BYTE_t;
90 const std::vector<carma::canbus::byteType> &data,
148 std::vector<carma::canbus::byteType>
getData()
const;
195 void setData(
const std::vector<carma::canbus::byteType> &data);
259 static const idType MAX_STANDARD_ID = 0x7FF;
261 static const idType MAX_EXTENDED_ID = 0x1FFFFFFF;
266 int getDataLength()
const;
280 carma::canbus::FastMessage rawMsg_;
JanzMessage & operator=(const JanzMessage &other)
Assignment operator.
unsigned short portType
Port id type for multi-port boards.
std::vector< carma::canbus::byteType > getData() const
Get the data as a vector of bytes (raw).
carma::canbus::JanzMessage::messageTypeType getMessageType() const
Get message type.
void disableTxRetry()
Set retry mode for message.
Declarations of carma::canbus types.
messageTypeType
Message type definition.
Class to encapsulate a CAN message.
void setPort(carma::canbus::portType port)
Set port number.
void setData(const std::vector< carma::canbus::byteType > &data)
Set the data.
bool isSimulated() const
Return simulated flag.
void setId(carma::canbus::idType id)
Set CAN message id.
double getRxMjd() const
Return the Rx MJD time.
bool operator==(const JanzMessage &other) const
Check for equality.
carma::canbus::busIdType getBusId() const
Get CAN bus Id.
void setRxMjd(double mjd)
Set the rxMjd time.
JanzMessage(JanzMessage::messageTypeType msgType=EXTENDED)
Default constructor.
carma::canbus::portType getPort() const
Get port number.
carma::canbus::FastMessage getRawMessage() const
Return the underlying drivers raw message.
unsigned int idType
Type for full 29 bit CAN id.
unsigned short busIdType
Carma Bus Id type.
unsigned short msgType
Carma Message id type.
This class encapsulate a Janz CAN message.
void setSimFlag(bool sim)
Set the simulated flag.
bool operator!=(const JanzMessage &other) const
Check for inequality.
carma::canbus::idType getId() const
Get CAN message id.
void setBusId(carma::canbus::busIdType busId)
Set bus Id.
void enableEcho()
Echo this message.