Ravago Jones | 1147237 | 2023-03-04 15:57:56 -0800 | [diff] [blame] | 1 | namespace frc971.can_logger; |
2 | |||||
3 | // A message to represent a single CAN or CAN FD frame. | ||||
4 | table 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); | ||||
11 | } | ||||
12 | |||||
13 | root_type CanFrame; |