aboutsummaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-26 16:19:53 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-11-28 16:11:48 +0100
commit46a6d2ed70bf66ad8255513191d2bb7b26cd32bb (patch)
tree007195a0717c4b59ed6f695ef1954f519f484fb4 /libs
parent1fa52a04542ed648b5a2a15b2f3d252f33202a33 (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 Bug-AGL: SPEC-2976 Change-Id: I27180774f044c48a9d7baa2739b15a2e85b8b2e2 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'libs')
-rw-r--r--libs/openxc-message-format/gen/cpp/openxc.pb.h8
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 {