blob: c7a82f20b27a0423e443c035ce7530441fa1c7d7 [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
James Kuszmaul22248e92024-02-23 16:46:51 -080010 realtime_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;