aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/can-decoder.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-06-26 10:34:04 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2019-06-26 17:55:06 +0200
commitd2d2620bbb8f0aad0181e67e9f6affc3d6cb4a51 (patch)
tree13e7c1069252dbadb2b430414f3722132d1d7013 /low-can-binding/can/can-decoder.hpp
parent82b45e3de8c92816c8080178224c5bd4be60a091 (diff)
Change can_message_t class usage for new j1939
This commit transforms the class can_message_t as the base class and creates two derived classes: j1939_message_t and can_message_t. Bug-AGL: SPEC-2386 Change-Id: I6d3afd8e4f5abff2cd0ec4e9910bd52a2893de76 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/can-decoder.hpp')
-rw-r--r--low-can-binding/can/can-decoder.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/low-can-binding/can/can-decoder.hpp b/low-can-binding/can/can-decoder.hpp
index 7e7349db..ffc881f9 100644
--- a/low-can-binding/can/can-decoder.hpp
+++ b/low-can-binding/can/can-decoder.hpp
@@ -18,20 +18,20 @@
#pragma once
#include "can-signals.hpp"
-#include "can-message.hpp"
+#include "message/can-message.hpp"
#include "openxc.pb.h"
class decoder_t
{
public:
- static float parse_signal_bitfield(can_signal_t& signal, const can_message_t& message);
+ static float parse_signal_bitfield(can_signal_t& signal, const message_t& message);
static openxc_DynamicField decode_state(can_signal_t& signal, float value, bool* send);
static openxc_DynamicField decode_boolean(can_signal_t& signal, float value, bool* send);
static openxc_DynamicField decode_ignore(can_signal_t& signal, float value, bool* send);
static openxc_DynamicField decode_noop(can_signal_t& signal, float value, bool* send);
- static openxc_DynamicField translate_signal(can_signal_t& signal, const can_message_t& messag, bool* send);
+ static openxc_DynamicField translate_signal(can_signal_t& signal, const message_t& messag, bool* send);
static openxc_DynamicField decode_signal(can_signal_t& signal, const can_message_t& message, bool* send);