diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-19 16:05:59 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-19 16:05:59 -0500 |
commit | a9e6edd6bc7952313997ec3cae5bfda3b2f62ee9 (patch) | |
tree | 950c27406741ecdedd58bca5b4ff6da685fb023f /gen/cpp | |
parent | 6f4799ca62b964e5626d9b22c4d292e6bd378d57 (diff) |
Add a value field to diagnostic responses for parsed payloads.
Diffstat (limited to 'gen/cpp')
-rw-r--r-- | gen/cpp/openxc.pb | 7 | ||||
-rw-r--r-- | gen/cpp/openxc.pb.c | 5 | ||||
-rw-r--r-- | gen/cpp/openxc.pb.h | 11 |
3 files changed, 14 insertions, 9 deletions
diff --git a/gen/cpp/openxc.pb b/gen/cpp/openxc.pb index b4fd2f65..ead68af6 100644 --- a/gen/cpp/openxc.pb +++ b/gen/cpp/openxc.pb @@ -1,5 +1,5 @@ -Ã +Ò openxc.protoopenxc"ƒ VehicleMessage) type (2.openxc.VehicleMessage.Type' @@ -17,7 +17,7 @@ RawMessage bus ( message_id (
-data ("‘ +data (" DiagnosticMessage bus ( @@ -26,7 +26,8 @@ message_id (
pid (
success ( negative_response_code (
-payload ("µ +payload (
+value ("µ TranslatedMessage, type (2.openxc.TranslatedMessage.Type name ( diff --git a/gen/cpp/openxc.pb.c b/gen/cpp/openxc.pb.c index 84c87c7c..d473fd3b 100644 --- a/gen/cpp/openxc.pb.c +++ b/gen/cpp/openxc.pb.c @@ -1,5 +1,5 @@ /* Automatically generated nanopb constant definitions */ -/* Generated by nanopb-0.2.5 at Fri Jan 17 16:33:23 2014. */ +/* Generated by nanopb-0.2.5 at Wed Feb 19 14:35:41 2014. */ #include "openxc.pb.h" @@ -20,7 +20,7 @@ const pb_field_t openxc_RawMessage_fields[4] = { PB_LAST_FIELD }; -const pb_field_t openxc_DiagnosticMessage_fields[8] = { +const pb_field_t openxc_DiagnosticMessage_fields[9] = { PB_FIELD2( 1, INT32 , OPTIONAL, STATIC , FIRST, openxc_DiagnosticMessage, bus, bus, 0), PB_FIELD2( 2, UINT32 , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, message_id, bus, 0), PB_FIELD2( 3, UINT32 , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, mode, message_id, 0), @@ -28,6 +28,7 @@ const pb_field_t openxc_DiagnosticMessage_fields[8] = { PB_FIELD2( 5, BOOL , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, success, pid, 0), PB_FIELD2( 6, UINT32 , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, negative_response_code, success, 0), PB_FIELD2( 7, BYTES , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, payload, negative_response_code, 0), + PB_FIELD2( 8, DOUBLE , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, value, payload, 0), PB_LAST_FIELD }; diff --git a/gen/cpp/openxc.pb.h b/gen/cpp/openxc.pb.h index 879dbb80..9e4c3a27 100644 --- a/gen/cpp/openxc.pb.h +++ b/gen/cpp/openxc.pb.h @@ -1,5 +1,5 @@ /* Automatically generated nanopb header */ -/* Generated by nanopb-0.2.5 at Fri Jan 17 16:33:23 2014. */ +/* Generated by nanopb-0.2.5 at Wed Feb 19 14:35:41 2014. */ #ifndef _PB_OPENXC_PB_H_ #define _PB_OPENXC_PB_H_ @@ -46,6 +46,8 @@ typedef struct _openxc_DiagnosticMessage { uint32_t negative_response_code; bool has_payload; openxc_DiagnosticMessage_payload_t payload; + bool has_value; + double value; } openxc_DiagnosticMessage; typedef struct { @@ -102,6 +104,7 @@ typedef struct _openxc_VehicleMessage { #define openxc_DiagnosticMessage_success_tag 5 #define openxc_DiagnosticMessage_negative_response_code_tag 6 #define openxc_DiagnosticMessage_payload_tag 7 +#define openxc_DiagnosticMessage_value_tag 8 #define openxc_RawMessage_bus_tag 1 #define openxc_RawMessage_message_id_tag 2 #define openxc_RawMessage_data_tag 3 @@ -121,13 +124,13 @@ typedef struct _openxc_VehicleMessage { /* Struct field encoding specification for nanopb */ extern const pb_field_t openxc_VehicleMessage_fields[5]; extern const pb_field_t openxc_RawMessage_fields[4]; -extern const pb_field_t openxc_DiagnosticMessage_fields[8]; +extern const pb_field_t openxc_DiagnosticMessage_fields[9]; extern const pb_field_t openxc_TranslatedMessage_fields[9]; /* Maximum encoded size of messages (where known) */ -#define openxc_VehicleMessage_size 421 +#define openxc_VehicleMessage_size 430 #define openxc_RawMessage_size 27 -#define openxc_DiagnosticMessage_size 47 +#define openxc_DiagnosticMessage_size 56 #define openxc_TranslatedMessage_size 334 #ifdef __cplusplus |