summaryrefslogtreecommitdiffstats
path: root/gen/cpp/openxc.pb.h
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-06 17:01:46 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-06 17:01:46 -0500
commit99f01a6d6da8012c297e2e7ccb2b8eaa69a9c4d1 (patch)
treefb8c971fbdd4a50ac4bd2610302305bf78445b67 /gen/cpp/openxc.pb.h
parent3e91f2023d1161432605aff4af6616a589e63b5c (diff)
Add CommandResponse type to VehicleMessage (from VI to host).
Diffstat (limited to 'gen/cpp/openxc.pb.h')
-rw-r--r--gen/cpp/openxc.pb.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/gen/cpp/openxc.pb.h b/gen/cpp/openxc.pb.h
index e9c01935..5db13577 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 Tue Mar 4 15:25:22 2014. */
+/* Generated by nanopb-0.2.5 at Thu Mar 6 16:21:37 2014. */
#ifndef _PB_OPENXC_PB_H_
#define _PB_OPENXC_PB_H_
@@ -14,7 +14,8 @@ typedef enum _openxc_VehicleMessage_Type {
openxc_VehicleMessage_Type_RAW = 1,
openxc_VehicleMessage_Type_TRANSLATED = 2,
openxc_VehicleMessage_Type_DIAGNOSTIC = 3,
- openxc_VehicleMessage_Type_CONTROL_COMMAND = 4
+ openxc_VehicleMessage_Type_CONTROL_COMMAND = 4,
+ openxc_VehicleMessage_Type_COMMAND_RESPONSE = 5
} openxc_VehicleMessage_Type;
typedef enum _openxc_ControlCommand_Type {
@@ -39,6 +40,13 @@ typedef enum _openxc_TranslatedMessage_Type {
} openxc_TranslatedMessage_Type;
/* Struct definitions */
+typedef struct _openxc_CommandResponse {
+ bool has_type;
+ openxc_ControlCommand_Type type;
+ bool has_message;
+ char message[128];
+} openxc_CommandResponse;
+
typedef struct {
size_t size;
uint8_t bytes[8];
@@ -143,11 +151,15 @@ typedef struct _openxc_VehicleMessage {
openxc_DiagnosticResponse diagnostic_response;
bool has_control_command;
openxc_ControlCommand control_command;
+ bool has_command_response;
+ openxc_CommandResponse command_response;
} openxc_VehicleMessage;
/* Default values for struct fields */
/* Field tags (for use in manual encoding/decoding) */
+#define openxc_CommandResponse_type_tag 1
+#define openxc_CommandResponse_message_tag 2
#define openxc_DiagnosticRequest_bus_tag 1
#define openxc_DiagnosticRequest_message_id_tag 2
#define openxc_DiagnosticRequest_mode_tag 3
@@ -183,20 +195,23 @@ typedef struct _openxc_VehicleMessage {
#define openxc_VehicleMessage_translated_message_tag 3
#define openxc_VehicleMessage_diagnostic_response_tag 4
#define openxc_VehicleMessage_control_command_tag 5
+#define openxc_VehicleMessage_command_response_tag 6
/* Struct field encoding specification for nanopb */
-extern const pb_field_t openxc_VehicleMessage_fields[6];
+extern const pb_field_t openxc_VehicleMessage_fields[7];
extern const pb_field_t openxc_RawMessage_fields[4];
extern const pb_field_t openxc_ControlCommand_fields[3];
+extern const pb_field_t openxc_CommandResponse_fields[3];
extern const pb_field_t openxc_DiagnosticRequest_fields[10];
extern const pb_field_t openxc_DiagnosticResponse_fields[9];
extern const pb_field_t openxc_DynamicField_fields[5];
extern const pb_field_t openxc_TranslatedMessage_fields[5];
/* Maximum encoded size of messages (where known) */
-#define openxc_VehicleMessage_size 524
+#define openxc_VehicleMessage_size 664
#define openxc_RawMessage_size 27
#define openxc_ControlCommand_size 76
+#define openxc_CommandResponse_size 137
#define openxc_DiagnosticRequest_size 68
#define openxc_DiagnosticResponse_size 56
#define openxc_DynamicField_size 119