aboutsummaryrefslogtreecommitdiffstats
path: root/ucs2-lib/doc/html/OS81118-110.gif
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-07 14:22:21 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-07 14:22:21 +0200
commitb19816ca72db0dd66d820dc2afaa3a5c0cc67fa0 (patch)
tree4b23c9284b7881cccc552851c82d641ce524844b /ucs2-lib/doc/html/OS81118-110.gif
parent2cca6592aa29a043c5bb4e41a24d79a9626f2299 (diff)
add packaging
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'ucs2-lib/doc/html/OS81118-110.gif')
0 files changed, 0 insertions, 0 deletions
r: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
package openxc;

message VehicleMessage {
    enum Type { RAW = 1; STRING = 2; NUM = 3; BOOL = 4; }

    optional Type type = 1;

    optional RawMessage raw_message = 2;
    optional TranslatedStringMessage string_message = 3;
    optional TranslatedNumericMessage numerical_message = 4;
    optional TranslatedBooleanMessage boolean_message = 5;
}

message RawMessage {
    optional uint32 message_id = 1;
    optional double data = 2;
}

message TranslatedStringMessage {
    optional string name = 1;
    optional string value = 2;
}

message TranslatedNumericMessage {
    optional string name = 1;
    optional double value = 2;
}

message TranslatedBooleanMessage {
    optional string name = 1;
    optional bool value = 2;
}

// TODO we should also consider having an enum type, h aving each specific
// message defined as a protobuf