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); |
Ravago Jones | 6f64176 | 2023-03-29 19:58:32 -0700 | [diff] [blame] | 11 | // Additional flags for CAN FD |
| 12 | flags: ubyte (id: 3); |
Ravago Jones | 1147237 | 2023-03-04 15:57:56 -0800 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | root_type CanFrame; |