@@ -21,12 +21,11 @@ typedef enum _openxc_VehicleMessage_Type {
21
21
openxc_VehicleMessage_Type_SIMPLE = 2 ,
22
22
openxc_VehicleMessage_Type_DIAGNOSTIC = 3 ,
23
23
openxc_VehicleMessage_Type_CONTROL_COMMAND = 4 ,
24
- openxc_VehicleMessage_Type_COMMAND_RESPONSE = 5 ,
25
- openxc_VehicleMessage_Type_DIAGNOSTIC_STITCH = 6
24
+ openxc_VehicleMessage_Type_COMMAND_RESPONSE = 5
26
25
} openxc_VehicleMessage_Type ;
27
26
#define _openxc_VehicleMessage_Type_MIN openxc_VehicleMessage_Type_UNUSED
28
- #define _openxc_VehicleMessage_Type_MAX openxc_VehicleMessage_Type_DIAGNOSTIC_STITCH
29
- #define _openxc_VehicleMessage_Type_ARRAYSIZE ((openxc_VehicleMessage_Type)(openxc_VehicleMessage_Type_DIAGNOSTIC_STITCH +1))
27
+ #define _openxc_VehicleMessage_Type_MAX openxc_VehicleMessage_Type_COMMAND_RESPONSE
28
+ #define _openxc_VehicleMessage_Type_ARRAYSIZE ((openxc_VehicleMessage_Type)(openxc_VehicleMessage_Type_COMMAND_RESPONSE +1))
30
29
31
30
typedef enum _openxc_CanMessage_FrameFormat {
32
31
openxc_CanMessage_FrameFormat_UNUSED = 0 ,
@@ -49,11 +48,12 @@ typedef enum _openxc_ControlCommand_Type {
49
48
openxc_ControlCommand_Type_MODEM_CONFIGURATION = 8 ,
50
49
openxc_ControlCommand_Type_RTC_CONFIGURATION = 9 ,
51
50
openxc_ControlCommand_Type_SD_MOUNT_STATUS = 10 ,
52
- openxc_ControlCommand_Type_PLATFORM = 11
51
+ openxc_ControlCommand_Type_PLATFORM = 11 ,
52
+ openxc_ControlCommand_Type_GET_VIN = 12
53
53
} openxc_ControlCommand_Type ;
54
54
#define _openxc_ControlCommand_Type_MIN openxc_ControlCommand_Type_UNUSED
55
- #define _openxc_ControlCommand_Type_MAX openxc_ControlCommand_Type_PLATFORM
56
- #define _openxc_ControlCommand_Type_ARRAYSIZE ((openxc_ControlCommand_Type)(openxc_ControlCommand_Type_PLATFORM +1))
55
+ #define _openxc_ControlCommand_Type_MAX openxc_ControlCommand_Type_GET_VIN
56
+ #define _openxc_ControlCommand_Type_ARRAYSIZE ((openxc_ControlCommand_Type)(openxc_ControlCommand_Type_GET_VIN +1))
57
57
58
58
typedef enum _openxc_DiagnosticControlCommand_Action {
59
59
openxc_DiagnosticControlCommand_Action_UNUSED = 0 ,
@@ -67,12 +67,11 @@ typedef enum _openxc_DiagnosticControlCommand_Action {
67
67
typedef enum _openxc_PayloadFormatCommand_PayloadFormat {
68
68
openxc_PayloadFormatCommand_PayloadFormat_UNUSED = 0 ,
69
69
openxc_PayloadFormatCommand_PayloadFormat_JSON = 1 ,
70
- openxc_PayloadFormatCommand_PayloadFormat_PROTOBUF = 2 ,
71
- openxc_PayloadFormatCommand_PayloadFormat_MESSAGEPACK = 3
70
+ openxc_PayloadFormatCommand_PayloadFormat_PROTOBUF = 2
72
71
} openxc_PayloadFormatCommand_PayloadFormat ;
73
72
#define _openxc_PayloadFormatCommand_PayloadFormat_MIN openxc_PayloadFormatCommand_PayloadFormat_UNUSED
74
- #define _openxc_PayloadFormatCommand_PayloadFormat_MAX openxc_PayloadFormatCommand_PayloadFormat_MESSAGEPACK
75
- #define _openxc_PayloadFormatCommand_PayloadFormat_ARRAYSIZE ((openxc_PayloadFormatCommand_PayloadFormat)(openxc_PayloadFormatCommand_PayloadFormat_MESSAGEPACK +1))
73
+ #define _openxc_PayloadFormatCommand_PayloadFormat_MAX openxc_PayloadFormatCommand_PayloadFormat_PROTOBUF
74
+ #define _openxc_PayloadFormatCommand_PayloadFormat_ARRAYSIZE ((openxc_PayloadFormatCommand_PayloadFormat)(openxc_PayloadFormatCommand_PayloadFormat_PROTOBUF +1))
76
75
77
76
typedef enum _openxc_NetworkOperatorSettings_OperatorSelectMode {
78
77
openxc_NetworkOperatorSettings_OperatorSelectMode_AUTOMATIC = 0 ,
@@ -224,24 +223,10 @@ typedef struct _openxc_DiagnosticResponse {
224
223
uint32_t negative_response_code ;
225
224
openxc_DiagnosticResponse_payload_t payload ;
226
225
openxc_DynamicField value ;
227
- /* @@protoc_insertion_point(struct:openxc_DiagnosticResponse) */
228
- } openxc_DiagnosticResponse ;
229
-
230
-
231
- typedef PB_BYTES_ARRAY_T (14 ) openxc_DiagnosticStitchResponse_payload_t ;
232
- typedef struct _openxc_DiagnosticStitchResponse {
233
- int32_t bus ;
234
- uint32_t message_id ;
235
- uint32_t mode ;
236
- uint32_t pid ;
237
- bool success ;
238
- uint32_t negative_response_code ;
239
- openxc_DiagnosticStitchResponse_payload_t payload ;
240
- openxc_DynamicField value ;
241
226
int32_t frame ;
242
227
uint32_t total_size ;
243
- /* @@protoc_insertion_point(struct:openxc_DiagnosticStitchResponse ) */
244
- } openxc_DiagnosticStitchResponse ;
228
+ /* @@protoc_insertion_point(struct:openxc_DiagnosticResponse ) */
229
+ } openxc_DiagnosticResponse ;
245
230
246
231
247
232
typedef struct _openxc_NetworkOperatorSettings {
@@ -288,14 +273,13 @@ typedef struct _openxc_VehicleMessage {
288
273
openxc_DiagnosticResponse diagnostic_response ;
289
274
openxc_ControlCommand control_command ;
290
275
openxc_CommandResponse command_response ;
291
- openxc_DiagnosticStitchResponse diagnostic_stitch_response ;
292
276
uint64_t timestamp ;
293
277
/* @@protoc_insertion_point(struct:openxc_VehicleMessage) */
294
278
} openxc_VehicleMessage ;
295
279
296
280
297
281
/* Initializer values for message structs */
298
- #define openxc_VehicleMessage_init_default {_openxc_VehicleMessage_Type_MIN, openxc_CanMessage_init_default, openxc_SimpleMessage_init_default, openxc_DiagnosticResponse_init_default, openxc_ControlCommand_init_default, openxc_CommandResponse_init_default, openxc_DiagnosticStitchResponse_init_default, 0}
282
+ #define openxc_VehicleMessage_init_default {_openxc_VehicleMessage_Type_MIN, openxc_CanMessage_init_default, openxc_SimpleMessage_init_default, openxc_DiagnosticResponse_init_default, openxc_ControlCommand_init_default, openxc_CommandResponse_init_default, 0}
299
283
#define openxc_CanMessage_init_default {0, 0, {0, {0}}, _openxc_CanMessage_FrameFormat_MIN}
300
284
#define openxc_ControlCommand_init_default {_openxc_ControlCommand_Type_MIN, openxc_DiagnosticControlCommand_init_default, openxc_PassthroughModeControlCommand_init_default, openxc_AcceptanceFilterBypassCommand_init_default, openxc_PayloadFormatCommand_init_default, openxc_PredefinedObd2RequestsCommand_init_default, openxc_ModemConfigurationCommand_init_default, openxc_RTCConfigurationCommand_init_default}
301
285
#define openxc_DiagnosticControlCommand_init_default {openxc_DiagnosticRequest_init_default, _openxc_DiagnosticControlCommand_Action_MIN}
@@ -311,11 +295,10 @@ typedef struct _openxc_VehicleMessage {
311
295
#define openxc_RTCConfigurationCommand_init_default {0}
312
296
#define openxc_CommandResponse_init_default {_openxc_ControlCommand_Type_MIN, "", 0}
313
297
#define openxc_DiagnosticRequest_init_default {0, 0, 0, 0, {0, {0}}, 0, 0, "", _openxc_DiagnosticRequest_DecodedType_MIN}
314
- #define openxc_DiagnosticResponse_init_default {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_default}
315
- #define openxc_DiagnosticStitchResponse_init_default {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_default, 0, 0}
298
+ #define openxc_DiagnosticResponse_init_default {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_default, 0, 0}
316
299
#define openxc_DynamicField_init_default {_openxc_DynamicField_Type_MIN, "", 0, 0}
317
300
#define openxc_SimpleMessage_init_default {"", openxc_DynamicField_init_default, openxc_DynamicField_init_default}
318
- #define openxc_VehicleMessage_init_zero {_openxc_VehicleMessage_Type_MIN, openxc_CanMessage_init_zero, openxc_SimpleMessage_init_zero, openxc_DiagnosticResponse_init_zero, openxc_ControlCommand_init_zero, openxc_CommandResponse_init_zero, openxc_DiagnosticStitchResponse_init_zero, 0}
301
+ #define openxc_VehicleMessage_init_zero {_openxc_VehicleMessage_Type_MIN, openxc_CanMessage_init_zero, openxc_SimpleMessage_init_zero, openxc_DiagnosticResponse_init_zero, openxc_ControlCommand_init_zero, openxc_CommandResponse_init_zero, 0}
319
302
#define openxc_CanMessage_init_zero {0, 0, {0, {0}}, _openxc_CanMessage_FrameFormat_MIN}
320
303
#define openxc_ControlCommand_init_zero {_openxc_ControlCommand_Type_MIN, openxc_DiagnosticControlCommand_init_zero, openxc_PassthroughModeControlCommand_init_zero, openxc_AcceptanceFilterBypassCommand_init_zero, openxc_PayloadFormatCommand_init_zero, openxc_PredefinedObd2RequestsCommand_init_zero, openxc_ModemConfigurationCommand_init_zero, openxc_RTCConfigurationCommand_init_zero}
321
304
#define openxc_DiagnosticControlCommand_init_zero {openxc_DiagnosticRequest_init_zero, _openxc_DiagnosticControlCommand_Action_MIN}
@@ -331,8 +314,7 @@ typedef struct _openxc_VehicleMessage {
331
314
#define openxc_RTCConfigurationCommand_init_zero {0}
332
315
#define openxc_CommandResponse_init_zero {_openxc_ControlCommand_Type_MIN, "", 0}
333
316
#define openxc_DiagnosticRequest_init_zero {0, 0, 0, 0, {0, {0}}, 0, 0, "", _openxc_DiagnosticRequest_DecodedType_MIN}
334
- #define openxc_DiagnosticResponse_init_zero {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_zero}
335
- #define openxc_DiagnosticStitchResponse_init_zero {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_zero, 0, 0}
317
+ #define openxc_DiagnosticResponse_init_zero {0, 0, 0, 0, 0, 0, {0, {0}}, openxc_DynamicField_init_zero, 0, 0}
336
318
#define openxc_DynamicField_init_zero {_openxc_DynamicField_Type_MIN, "", 0, 0}
337
319
#define openxc_SimpleMessage_init_zero {"", openxc_DynamicField_init_zero, openxc_DynamicField_init_zero}
338
320
@@ -379,16 +361,8 @@ typedef struct _openxc_VehicleMessage {
379
361
#define openxc_DiagnosticResponse_negative_response_code_tag 6
380
362
#define openxc_DiagnosticResponse_payload_tag 7
381
363
#define openxc_DiagnosticResponse_value_tag 8
382
- #define openxc_DiagnosticStitchResponse_bus_tag 1
383
- #define openxc_DiagnosticStitchResponse_message_id_tag 2
384
- #define openxc_DiagnosticStitchResponse_mode_tag 3
385
- #define openxc_DiagnosticStitchResponse_pid_tag 4
386
- #define openxc_DiagnosticStitchResponse_success_tag 5
387
- #define openxc_DiagnosticStitchResponse_negative_response_code_tag 6
388
- #define openxc_DiagnosticStitchResponse_payload_tag 7
389
- #define openxc_DiagnosticStitchResponse_value_tag 8
390
- #define openxc_DiagnosticStitchResponse_frame_tag 9
391
- #define openxc_DiagnosticStitchResponse_total_size_tag 10
364
+ #define openxc_DiagnosticResponse_frame_tag 9
365
+ #define openxc_DiagnosticResponse_total_size_tag 10
392
366
#define openxc_NetworkOperatorSettings_allowDataRoaming_tag 1
393
367
#define openxc_NetworkOperatorSettings_operatorSelectMode_tag 2
394
368
#define openxc_NetworkOperatorSettings_networkDescriptor_tag 3
@@ -412,8 +386,7 @@ typedef struct _openxc_VehicleMessage {
412
386
#define openxc_VehicleMessage_diagnostic_response_tag 4
413
387
#define openxc_VehicleMessage_control_command_tag 5
414
388
#define openxc_VehicleMessage_command_response_tag 6
415
- #define openxc_VehicleMessage_diagnostic_stitch_response_tag 7
416
- #define openxc_VehicleMessage_timestamp_tag 8
389
+ #define openxc_VehicleMessage_timestamp_tag 7
417
390
418
391
/* Struct field encoding specification for nanopb */
419
392
#define openxc_VehicleMessage_FIELDLIST (X , a ) \
@@ -423,16 +396,14 @@ X(a, STATIC, SINGULAR, MESSAGE, simple_message, 3) \
423
396
X(a, STATIC, SINGULAR, MESSAGE, diagnostic_response, 4) \
424
397
X(a, STATIC, SINGULAR, MESSAGE, control_command, 5) \
425
398
X(a, STATIC, SINGULAR, MESSAGE, command_response, 6) \
426
- X(a, STATIC, SINGULAR, MESSAGE, diagnostic_stitch_response, 7) \
427
- X(a, STATIC, SINGULAR, UINT64, timestamp, 8)
399
+ X(a, STATIC, SINGULAR, UINT64, timestamp, 7)
428
400
#define openxc_VehicleMessage_CALLBACK NULL
429
401
#define openxc_VehicleMessage_DEFAULT NULL
430
402
#define openxc_VehicleMessage_can_message_MSGTYPE openxc_CanMessage
431
403
#define openxc_VehicleMessage_simple_message_MSGTYPE openxc_SimpleMessage
432
404
#define openxc_VehicleMessage_diagnostic_response_MSGTYPE openxc_DiagnosticResponse
433
405
#define openxc_VehicleMessage_control_command_MSGTYPE openxc_ControlCommand
434
406
#define openxc_VehicleMessage_command_response_MSGTYPE openxc_CommandResponse
435
- #define openxc_VehicleMessage_diagnostic_stitch_response_MSGTYPE openxc_DiagnosticStitchResponse
436
407
437
408
#define openxc_CanMessage_FIELDLIST (X , a ) \
438
409
X(a, STATIC, SINGULAR, INT32, bus, 1) \
@@ -558,25 +529,12 @@ X(a, STATIC, SINGULAR, UINT32, pid, 4) \
558
529
X(a, STATIC, SINGULAR, BOOL, success, 5) \
559
530
X(a, STATIC, SINGULAR, UINT32, negative_response_code, 6) \
560
531
X(a, STATIC, SINGULAR, BYTES, payload, 7) \
561
- X(a, STATIC, SINGULAR, MESSAGE, value, 8)
562
- #define openxc_DiagnosticResponse_CALLBACK NULL
563
- #define openxc_DiagnosticResponse_DEFAULT NULL
564
- #define openxc_DiagnosticResponse_value_MSGTYPE openxc_DynamicField
565
-
566
- #define openxc_DiagnosticStitchResponse_FIELDLIST (X , a ) \
567
- X(a, STATIC, SINGULAR, INT32, bus, 1) \
568
- X(a, STATIC, SINGULAR, UINT32, message_id, 2) \
569
- X(a, STATIC, SINGULAR, UINT32, mode, 3) \
570
- X(a, STATIC, SINGULAR, UINT32, pid, 4) \
571
- X(a, STATIC, SINGULAR, BOOL, success, 5) \
572
- X(a, STATIC, SINGULAR, UINT32, negative_response_code, 6) \
573
- X(a, STATIC, SINGULAR, BYTES, payload, 7) \
574
532
X(a, STATIC, SINGULAR, MESSAGE, value, 8) \
575
533
X(a, STATIC, SINGULAR, INT32, frame, 9) \
576
534
X(a, STATIC, SINGULAR, UINT32, total_size, 10)
577
- #define openxc_DiagnosticStitchResponse_CALLBACK NULL
578
- #define openxc_DiagnosticStitchResponse_DEFAULT NULL
579
- #define openxc_DiagnosticStitchResponse_value_MSGTYPE openxc_DynamicField
535
+ #define openxc_DiagnosticResponse_CALLBACK NULL
536
+ #define openxc_DiagnosticResponse_DEFAULT NULL
537
+ #define openxc_DiagnosticResponse_value_MSGTYPE openxc_DynamicField
580
538
581
539
#define openxc_DynamicField_FIELDLIST (X , a ) \
582
540
X(a, STATIC, SINGULAR, UENUM, type, 1) \
@@ -612,7 +570,6 @@ extern const pb_msgdesc_t openxc_RTCConfigurationCommand_msg;
612
570
extern const pb_msgdesc_t openxc_CommandResponse_msg ;
613
571
extern const pb_msgdesc_t openxc_DiagnosticRequest_msg ;
614
572
extern const pb_msgdesc_t openxc_DiagnosticResponse_msg ;
615
- extern const pb_msgdesc_t openxc_DiagnosticStitchResponse_msg ;
616
573
extern const pb_msgdesc_t openxc_DynamicField_msg ;
617
574
extern const pb_msgdesc_t openxc_SimpleMessage_msg ;
618
575
@@ -634,12 +591,11 @@ extern const pb_msgdesc_t openxc_SimpleMessage_msg;
634
591
#define openxc_CommandResponse_fields &openxc_CommandResponse_msg
635
592
#define openxc_DiagnosticRequest_fields &openxc_DiagnosticRequest_msg
636
593
#define openxc_DiagnosticResponse_fields &openxc_DiagnosticResponse_msg
637
- #define openxc_DiagnosticStitchResponse_fields &openxc_DiagnosticStitchResponse_msg
638
594
#define openxc_DynamicField_fields &openxc_DynamicField_msg
639
595
#define openxc_SimpleMessage_fields &openxc_SimpleMessage_msg
640
596
641
597
/* Maximum encoded size of messages (where known) */
642
- #define openxc_VehicleMessage_size 1585
598
+ #define openxc_VehicleMessage_size 1383
643
599
#define openxc_CanMessage_size 29
644
600
#define openxc_ControlCommand_size 342
645
601
#define openxc_DiagnosticControlCommand_size 67
@@ -655,8 +611,7 @@ extern const pb_msgdesc_t openxc_SimpleMessage_msg;
655
611
#define openxc_RTCConfigurationCommand_size 6
656
612
#define openxc_CommandResponse_size 134
657
613
#define openxc_DiagnosticRequest_size 63
658
- #define openxc_DiagnosticResponse_size 441
659
- #define openxc_DiagnosticStitchResponse_size 216
614
+ #define openxc_DiagnosticResponse_size 458
660
615
#define openxc_DynamicField_size 143
661
616
#define openxc_SimpleMessage_size 393
662
617
0 commit comments