From 491c4d4d0bc418c1fbc6e3a1af8093e4049d8b87 Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Tue, 27 Aug 2019 15:40:55 +0200 Subject: Add new decoders bytes for signal of long size This commit adds the decoder bytes. It allows to return a sequence of bytes in hexadecimal form. Bug-AGL : SPEC-2780 Change-Id: I27180774f044c48a9d7baa2739b15a2e85b8b2e2 Signed-off-by: Arthur Guyader --- libs/openxc-message-format/gen/cpp/openxc.pb.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libs/openxc-message-format/gen/cpp') diff --git a/libs/openxc-message-format/gen/cpp/openxc.pb.h b/libs/openxc-message-format/gen/cpp/openxc.pb.h index 09735ee7..30b0818d 100644 --- a/libs/openxc-message-format/gen/cpp/openxc.pb.h +++ b/libs/openxc-message-format/gen/cpp/openxc.pb.h @@ -13,6 +13,8 @@ extern "C" { #endif +#define MAX_ISOTP_BYTES 4095 + /* Enum definitions */ typedef enum _openxc_VehicleMessage_Type { openxc_VehicleMessage_Type_CAN = 1, @@ -73,7 +75,8 @@ typedef enum _openxc_DiagnosticRequest_DecodedType { typedef enum _openxc_DynamicField_Type { openxc_DynamicField_Type_STRING = 1, openxc_DynamicField_Type_NUM = 2, - openxc_DynamicField_Type_BOOL = 3 + openxc_DynamicField_Type_BOOL = 3, + openxc_DynamicField_Type_BYTES = 4 } openxc_DynamicField_Type; /* Struct definitions */ @@ -163,6 +166,9 @@ typedef struct _openxc_DynamicField { double numeric_value; bool has_boolean_value; bool boolean_value; + uint8_t bytes_value[MAX_ISOTP_BYTES]; + uint32_t length_array; + bool has_bytes_value; } openxc_DynamicField; typedef struct _openxc_NetworkOperatorSettings_NetworkDescriptor { -- cgit 1.2.3-korg