blob: ba60241ddd108b967a8c8c26ed88b9d5f4733087 [file] [log] [blame]
Ravago Jones11472372023-03-04 15:57:56 -08001namespace frc971.can_logger;
2
3// A message to represent a single CAN or CAN FD frame.
4table CanFrame {
5 // CAN id + flags
6 can_id:uint32 (id: 0);
7 // The body of the CAN frame up to 64 bytes long.
8 data:[ubyte] (id: 1);
9 // The hardware timestamp of when the frame came in
10 monotonic_timestamp_ns:uint64 (id: 2);
Ravago Jones6f641762023-03-29 19:58:32 -070011 // Additional flags for CAN FD
12 flags: ubyte (id: 3);
Ravago Jones11472372023-03-04 15:57:56 -080013}
14
15root_type CanFrame;