From 06acf7a42da0ab605d9dac3c4c0c66f426a06d17 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 27 Feb 2017 20:25:52 +0100 Subject: Changed the decoding function Change-Id: Ib27fb13d4fb7959509400a3c2eff2859d1ce9c2b Signed-off-by: Romain Forlot --- src/can-utils.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/can-utils.hpp') 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 -- cgit 1.2.3-korg