summaryrefslogtreecommitdiffstats
path: root/gen/cpp
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-17 14:31:39 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-17 14:31:39 -0500
commit59f06d99530676c638495d9cde0748f7653e33e5 (patch)
tree188aec6639890a17d1f385e18f11fec9d89c450f /gen/cpp
parent40127285861b290ad596bf713cf6d21e7f2072c1 (diff)
Store diagnostic response payload as a byte array in protobuf.
Diffstat (limited to 'gen/cpp')
-rw-r--r--gen/cpp/openxc.pb2
-rw-r--r--gen/cpp/openxc.pb.c4
-rw-r--r--gen/cpp/openxc.pb.h11
3 files changed, 11 insertions, 6 deletions
diff --git a/gen/cpp/openxc.pb b/gen/cpp/openxc.pb
index 2267f21..82bfdd4 100644
--- a/gen/cpp/openxc.pb
+++ b/gen/cpp/openxc.pb
@@ -23,7 +23,7 @@ message_id ( 
pid ( 
success (
negative_response_code ( 
-payload ("µ
+payload ( "µ
TranslatedMessage,
type (2.openxc.TranslatedMessage.Type
name ( 
diff --git a/gen/cpp/openxc.pb.c b/gen/cpp/openxc.pb.c
index da61655..7e2d390 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 14:12:22 2014. */
+/* Generated by nanopb-0.2.5 at Fri Jan 17 14:31:26 2014. */
#include "openxc.pb.h"
@@ -26,7 +26,7 @@ const pb_field_t openxc_DiagnosticMessage_fields[8] = {
PB_FIELD2( 4, UINT32 , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, pid, mode, 0),
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, UINT64 , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, payload, negative_response_code, 0),
+ PB_FIELD2( 7, BYTES , OPTIONAL, STATIC , OTHER, openxc_DiagnosticMessage, payload, negative_response_code, 0),
PB_LAST_FIELD
};
diff --git a/gen/cpp/openxc.pb.h b/gen/cpp/openxc.pb.h
index e4619ce..f5f117e 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 14:12:22 2014. */
+/* Generated by nanopb-0.2.5 at Fri Jan 17 14:31:26 2014. */
#ifndef _PB_OPENXC_PB_H_
#define _PB_OPENXC_PB_H_
@@ -25,6 +25,11 @@ typedef enum _openxc_TranslatedMessage_Type {
} openxc_TranslatedMessage_Type;
/* Struct definitions */
+typedef struct {
+ size_t size;
+ uint8_t bytes[8];
+} openxc_DiagnosticMessage_payload_t;
+
typedef struct _openxc_DiagnosticMessage {
bool has_bus;
int32_t bus;
@@ -39,7 +44,7 @@ typedef struct _openxc_DiagnosticMessage {
bool has_negative_response_code;
uint32_t negative_response_code;
bool has_payload;
- uint64_t payload;
+ openxc_DiagnosticMessage_payload_t payload;
} openxc_DiagnosticMessage;
typedef struct _openxc_RawMessage {
@@ -113,7 +118,7 @@ extern const pb_field_t openxc_TranslatedMessage_fields[9];
/* Maximum encoded size of messages (where known) */
#define openxc_VehicleMessage_size 373
#define openxc_RawMessage_size 28
-#define openxc_DiagnosticMessage_size 48
+#define openxc_DiagnosticMessage_size 47
#define openxc_TranslatedMessage_size 334
#ifdef __cplusplus