aboutsummaryrefslogtreecommitdiffstats
path: root/src/can-utils.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-27 20:25:52 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-27 20:25:52 +0100
commit06acf7a42da0ab605d9dac3c4c0c66f426a06d17 (patch)
treebf31e8870354bc88b1c217e29cfd69205e837dce /src/can-utils.hpp
parentf06cda1411cc087ca551e6e9bffa9cb2dc79b4ca (diff)
Changed the decoding function
Change-Id: Ib27fb13d4fb7959509400a3c2eff2859d1ce9c2b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-utils.hpp')
-rw-r--r--src/can-utils.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/can-utils.hpp b/src/can-utils.hpp
index 76dc75b3..5938169a 100644
--- a/src/can-utils.hpp
+++ b/src/can-utils.hpp
@@ -50,8 +50,8 @@
*
* @return a decoded value in an openxc_DynamicField struct.
*/
-typedef openxc_DynamicField (*SignalDecoder)(struct CanSignal* signal,
- CanSignal* signals, int signalCount, float value, bool* send);
+typedef openxc_DynamicField (*SignalDecoder)(const struct CanSignal& signal,
+ const CanSignal& signals, float value, bool* send);
/**
* @brief: The type signature for a CAN signal encoder.
@@ -463,7 +463,7 @@ typedef struct CanSignal CanSignal;
* outgoing CAN messages.
*/
struct CanMessageDefinition {
- struct CanBus* bus; /*!< bus - A pointer to the bus this message is on. */
+ //can_bus_dev_t bus; /*!< bus - A pointer to the bus this message is on. */
uint32_t id; /*!< id - The ID of the message.*/
CanMessageFormat format; /*!< format - the format of the message's ID.*/
FrequencyClock frequencyClock; /*!< clock - an optional frequency clock to control the output of this