diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-27 15:40:55 +0200 |
---|---|---|
committer | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-30 15:41:22 +0200 |
commit | 491c4d4d0bc418c1fbc6e3a1af8093e4049d8b87 (patch) | |
tree | 0e3ce68915a5c6a8104d888249afbce6e6d7b0e6 /libs/openxc-message-format/gen | |
parent | 96232f8f7cf8b93f1a3ef3ed9a4816c575cefe87 (diff) |
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 <arthur.guyader@iot.bzh>
Diffstat (limited to 'libs/openxc-message-format/gen')
-rw-r--r-- | libs/openxc-message-format/gen/cpp/openxc.pb.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 { |