From 96232f8f7cf8b93f1a3ef3ed9a4816c575cefe87 Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Tue, 27 Aug 2019 11:41:57 +0200 Subject: 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 --- low-can-binding/can/can-decoder.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'low-can-binding/can/can-decoder.hpp') 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); - 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, bool* send); + static openxc_DynamicField decode_boolean(signal_t& signal, std::shared_ptr message, bool* send); + static openxc_DynamicField decode_ignore(signal_t& signal, std::shared_ptr message, bool* send); + static openxc_DynamicField decode_noop(signal_t& signal, std::shared_ptr message, bool* send); static openxc_DynamicField translate_signal(signal_t& signal, std::shared_ptr message, bool* send); static openxc_DynamicField decode_signal(signal_t& signal, std::shared_ptr 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 -- cgit 1.2.3-korg