diff options
author | 2017-03-12 19:52:05 +0100 | |
---|---|---|
committer | 2017-03-16 17:10:41 +0100 | |
commit | 301b33d9bfff4db47a06684ebd7916cdebd63edc (patch) | |
tree | ac8983331695d1526d458ea685505eed654041d8 /src/configuration.hpp | |
parent | 95d91c64f891ece71fa196178345bacf9e3967d6 (diff) |
Missing include header and code reordering and cleaning.
Change-Id: I37b2b2b439bb72d2230d606b9ddd52c3eb08ea8f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/configuration.hpp')
-rw-r--r-- | src/configuration.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp index 516b0ff..321b96e 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -69,11 +69,12 @@ class configuration_t std::vector<can_signal_t>& get_can_signals(); - const std::vector<can_message_definition_t>& get_can_message_definition(); - std::vector<obd2_signal_t>& get_obd2_signals(); const std::vector<std::string>& get_signals_prefix() const; + + const std::vector<can_message_definition_t>& 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); */ }; |