Update benchmark tool for latest protobuf format.
[apps/low-level-can-service.git] / openxc.proto
1 package openxc;
2
3 message VehicleMessage {
4     enum Type { RAW = 1; TRANSLATED = 2; }
5
6     optional Type type = 1;
7
8     optional RawMessage raw_message = 2;
9     optional TranslatedMessage translated_message = 3;
10 }
11
12 message RawMessage {
13     optional int32 bus = 1;
14     optional uint32 message_id = 2;
15     optional sint64 data = 3;
16 }
17
18 message TranslatedMessage {
19     optional string name = 1;
20
21     optional string string_value = 2;
22     optional double numerical_value = 3;
23     optional bool boolean_value = 4;
24
25     optional string string_event = 5;
26     optional double numerical_event = 6;
27     optional bool boolean_event = 7;
28 }
29
30 // TODO we should also consider having an enum type, having each specific
31 // message defined as a protobuf