canbus
/build/rock-master-18.09-drivers-orogen-canbus-0.20180808/canTypes.hh
Go to the documentation of this file.
1 #ifndef CANBUS_TYPES_HH
2 #define CANBUS_TYPES_HH
3 
4 #include <base/Time.hpp>
5 
6 namespace canbus
7 {
8  struct Statistics
9  {
10  base::Time time;
11  uint64_t msg_tx;
12  uint64_t msg_rx;
13  uint64_t tx;
14  uint64_t rx;
15  uint64_t error_count;
16 
18  : msg_tx(0), msg_rx(0), tx(0), rx(0), error_count(0) {}
19  };
20 }
21 #endif
22 
uint64_t msg_rx
the number of messages sent (total)
Definition: canTypes.hh:12
uint64_t tx
the number of messages received (total)
Definition: canTypes.hh:13
base::Time time
Definition: canTypes.hh:10
Statistics()
Definition: canTypes.hh:17
Definition: canTypes.hh:8
uint64_t rx
the amount of bytes sent (total)
Definition: canTypes.hh:14
Definition: canTypes.hh:6
uint64_t error_count
the amount of bytes received (total)
Definition: canTypes.hh:15
uint64_t msg_tx
Definition: canTypes.hh:11