diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-27 11:41:57 +0200 |
---|---|---|
committer | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-30 15:12:00 +0200 |
commit | 96232f8f7cf8b93f1a3ef3ed9a4816c575cefe87 (patch) | |
tree | c544c288fdde9aea0598fbfa92f580155c65ea83 /low-can-binding/can/signals.hpp | |
parent | 6d6b880b2769add860cb0f135e0f784f8aaf5e00 (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/signals.hpp')
-rw-r--r-- | low-can-binding/can/signals.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/low-can-binding/can/signals.hpp b/low-can-binding/can/signals.hpp index e723100e..2fcc27ed 100644 --- a/low-can-binding/can/signals.hpp +++ b/low-can-binding/can/signals.hpp @@ -38,15 +38,13 @@ class signal_t; /// string or boolean. /// /// @param[in] signal - The CAN signal that we are decoding. -/// @param[in] signalCount - The length of the signals array. -/// @param[in] value - The CAN signal parsed from the message as a raw floating point -/// value. +/// @param[in] message - The message with data to decode. /// @param[out] send - An output parameter. If decoding fails or CAN signal is /// not sending, this should be flipped to false. /// /// @return a decoded value in an openxc_DynamicField struct. /// -typedef openxc_DynamicField (*signal_decoder)(signal_t& signal, float value, bool* send); +typedef openxc_DynamicField (*signal_decoder)(signal_t& signal, std::shared_ptr<message_t> message, bool* send); /// /// @brief: The type signature for a CAN signal encoder. |