aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/can-decoder.hpp
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-08-27 11:41:57 +0200
committerArthur Guyader <arthur.guyader@iot.bzh>2019-08-30 15:12:00 +0200
commit96232f8f7cf8b93f1a3ef3ed9a4816c575cefe87 (patch)
treec544c288fdde9aea0598fbfa92f580155c65ea83 /low-can-binding/can/can-decoder.hpp
parent6d6b880b2769add860cb0f135e0f784f8aaf5e00 (diff)
Change signature of decoders
This commit changes the signature of decoders. It is now necessary to specify the version of the signals so that the low-can-generator generates the associated wrapper and not need to modify the decoder already developed. Bug-AGL : SPEC-2780 Change-Id: I044b1a3a6bacb9fc59bd6d3f77a1dbc437a3aa86 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Diffstat (limited to 'low-can-binding/can/can-decoder.hpp')
-rw-r--r--low-can-binding/can/can-decoder.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/low-can-binding/can/can-decoder.hpp b/low-can-binding/can/can-decoder.hpp
index ac9eb5d9..78de8ee1 100644
--- a/low-can-binding/can/can-decoder.hpp
+++ b/low-can-binding/can/can-decoder.hpp
@@ -26,16 +26,14 @@ class decoder_t
public:
static float parse_signal_bitfield(signal_t& signal, std::shared_ptr<message_t> message);
- static openxc_DynamicField decode_state(signal_t& signal, float value, bool* send);
- static openxc_DynamicField decode_boolean(signal_t& signal, float value, bool* send);
- static openxc_DynamicField decode_ignore(signal_t& signal, float value, bool* send);
- static openxc_DynamicField decode_noop(signal_t& signal, float value, bool* send);
+ static openxc_DynamicField decode_state(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
+ static openxc_DynamicField decode_boolean(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
+ static openxc_DynamicField decode_ignore(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
+ static openxc_DynamicField decode_noop(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
static openxc_DynamicField translate_signal(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
static openxc_DynamicField decode_signal(signal_t& signal, std::shared_ptr<message_t> message, bool* send);
- static openxc_DynamicField decode_signal(signal_t& signal, float value, bool* send);
-
static float decode_obd2_response(const DiagnosticResponse* response, float parsed_payload);
-};
+}; \ No newline at end of file