From 301b33d9bfff4db47a06684ebd7916cdebd63edc Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Sun, 12 Mar 2017 19:52:05 +0100 Subject: Missing include header and code reordering and cleaning. Change-Id: I37b2b2b439bb72d2230d606b9ddd52c3eb08ea8f Signed-off-by: Romain Forlot --- src/configuration.hpp | 8 +++----- src/low-can-binding.cpp | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/configuration.hpp b/src/configuration.hpp index 516b0ff8..321b96ea 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -69,11 +69,12 @@ class configuration_t std::vector& get_can_signals(); - const std::vector& get_can_message_definition(); - std::vector& get_obd2_signals(); const std::vector& get_signals_prefix() const; + + const std::vector& get_can_message_definition(); + uint32_t get_signal_id(obd2_signal_t& sig) const; uint32_t get_signal_id(can_signal_t& sig) const; @@ -90,14 +91,12 @@ class configuration_t /// @param[in] bus A CanBus struct defining the bus's metadata /// @param[in] writable Configure the controller in a writable mode. If false, it will be configured as "listen only" and will not allow writes or even CAN ACKs. /// @param[in] buses An array of all CAN buses. - /// @param[in] busCount The length of the buses array. void pre_initialize(can_bus_dev_t* bus, bool writable, can_bus_dev_t* buses, const int busCount); /// TODO: implement this function as method into can_bus class /// @brief Post-initialize actions made after CAN bus initialization /// @param[in] bus A CanBus struct defining the bus's metadata /// @param[in] writable Configure the controller in a writable mode. If false, it will be configured as "listen only" and will not allow writes or even CAN ACKs. /// @param[in] buses An array of all CAN buses. - /// @param[in] busCount The length of the buses array. void post_initialize(can_bus_dev_t* bus, bool writable, can_bus_dev_t* buses, const int busCount); /// TODO: implement this function as method into can_bus class /// @brief Check if the device is connected to an active CAN bus, i.e. it's received a message in the recent past. @@ -106,7 +105,6 @@ class configuration_t /// TODO: implement this function as method into can_bus class /// @brief Log transfer statistics about all active CAN buses to the debug log. /// @param[in] buses An array of active CAN buses. - /// @param[in] busCount The length of the buses array. bool isBusActive(can_bus_dev_t* bus); */ }; diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp index 7baf147a..d1c9ae07 100644 --- a/src/low-can-binding.cpp +++ b/src/low-can-binding.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -33,6 +34,7 @@ #include "can/can-message.hpp" #include "utils/timer.hpp" #include "utils/signals.hpp" +#include "obd2/obd2-signals.hpp" #include "utils/openxc-utils.hpp" extern "C" -- cgit 1.2.3-korg