diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-26 16:19:49 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-28 16:11:48 +0100 |
commit | 1fa52a04542ed648b5a2a15b2f3d252f33202a33 (patch) | |
tree | 6cf276244f3defbc4995bf90db2919a9ddefcf1f /low-can-binding/can/can-decoder.hpp | |
parent | 3fb5cd5d762006c3bc20ffc7acd86f8a74156f9b (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
Bug-AGL: SPEC-2976
Change-Id: I044b1a3a6bacb9fc59bd6d3f77a1dbc437a3aa86
Signed-off-by: Arthur Guyader <arthur.guyader@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.hpp | 12 |
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 |