blob: 9f9046eb5bf7dd9e275c2f1944e20043887add7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package openxc;
option java_package = "com.openxc";
option java_outer_classname = "BinaryMessages";
message VehicleMessage {
enum Type { RAW = 1; TRANSLATED = 2; }
optional Type type = 1;
optional RawMessage raw_message = 2;
optional TranslatedMessage translated_message = 3;
}
message RawMessage {
optional int32 bus = 1;
optional uint32 message_id = 2;
optional uint64 data = 3;
}
message TranslatedMessage {
optional string name = 1;
optional string string_value = 2;
optional double numerical_value = 3;
optional bool boolean_value = 4;
optional string string_event = 5;
optional double numerical_event = 6;
optional bool boolean_event = 7;
}
// TODO we should also consider having an enum type, having each specific
// message defined as a protobuf
|