9 #ifndef CARMA_CANBUS_TYPES_H
10 #define CARMA_CANBUS_TYPES_H
72 typedef ::std::vector< ::carma::canbus::byteType>
DataVector;
74 typedef ::std::map< ::carma::canbus::msgType, ::std::string >
MsgBriefMap;
201 const int NANOSECS_PER_SEC = 1000000000;
208 const std::string CAN_INPUT_IPQ =
"/can-input.ipq";
209 const std::string CAN_OUTPUT_IPQ =
"/can-output.ipq";
unsigned short portType
Port id type for multi-port boards.
unsigned int keyType
Unique key identifier for each device.
volatile unsigned short rxErrors
Current CAN rx errors.
volatile double rxMsgRate
Half sec averaged rx msg rate.
busStateType state
State of bus.
unsigned short boardType
Carma Board Type id type.
unsigned char byteType
Base raw CAN byte.
volatile unsigned short txErrors
Current CAN tx errors.
const busIdType ALL_BUSSES
Specifies that a message should be sent to ALL_BUSSES.
Decode CAN id in API, Node form.
deviceStateEnum
Device state type enumeration.
volatile unsigned int slowMsgsLost
Count of Janz slow msgs lost (slow msgs are messages to communicate with the Janz board only)...
Rx and tx error count < 127.
Host is receiving CAN messages on a half second time scale.
Rx and tx error count = 0.
Monitor packets are not being received from the module.
enum carma::canbus::modeTypeEnum modeType
Mode type.
enum carma::canbus::busStateEnum busStateType
Bus State type.
volatile unsigned int fastMsgsLost
Count of Janz fast msgs lost (fast msgs are CAN messages only).
const long IPQ_BUFFER_SIZE
DirectCan IPQ buffer sizes.
const apiType DUMMY_PKT_API
Dummy packet api.
unsigned short apiType
Carma API id type.
Rx and tx error count < 255.
struct carma::canbus::busStatusStruct busStatusType
Bus Status type.
unsigned short serialNumberType
Carma Serial Number type.
std::map< busIdType, busStatusType > BusStatusMap
Map to hold bus status for multiple busses.
unsigned short nodeType
Carma Node Type id type.
::std::map< ::carma::canbus::msgType,::std::string > MsgBriefMap
Alias for message descriptions keyed by message id.
::std::vector< ::carma::canbus::byteType > DataVector
Alias for CAN data.
Host is simulating the receipt of monitor packets for this module.
volatile double oneMinTxMsgRate
1 Min averaged tx msg rate
Decode CAN Id in serial num, board type form.
txPriorityType
CAN Tx priority type.
unsigned int idType
Type for full 29 bit CAN id.
const msgType DUMMY_PKT_MID
Dummy packet message id.
The module has sent out a single slow monitor packet to identify itself.
busStateEnum
Bus State type.
unsigned short busIdType
Carma Bus Id type.
volatile int tsEchoLatency
Time elapsed from the time timestamp is created to when it is echoed back to the host and processed (...
unsigned short msgType
Carma Message id type.
Rx and tx error count = 255.
volatile double txMsgRate
Half sec averaged tx msg rate.
volatile double oneMinRxMsgRate
1 Min averaged rx msg rate