aboutsummaryrefslogtreecommitdiffstats
path: root/gen/cpp
diff options
context:
space:
mode:
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 2267f21c..82bfdd4f 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 da616556..7e2d390d 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 e4619ce1..f5f117e4 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