diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/can/can-message.hpp | 2 | ||||
-rw-r--r-- | src/can/can-signals.cpp | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/can/can-message.hpp b/src/can/can-message.hpp index 5d796cd..5d45b98 100644 --- a/src/can/can-message.hpp +++ b/src/can/can-message.hpp @@ -122,7 +122,7 @@ class can_message_definition_t * needs to compare an incoming CAN message with the previous frame.*/ public: - uint32_t get_id(); + uint32_t get_id() const; }; /** diff --git a/src/can/can-signals.cpp b/src/can/can-signals.cpp index 18f5f2a..d369057 100644 --- a/src/can/can-signals.cpp +++ b/src/can/can-signals.cpp @@ -24,6 +24,16 @@ #include "obd2/obd2-signals.hpp" #include "low-can-binding.hpp" +can_message_definition_t& can_signal_t::get_message() const +{ + return message_; +} + +std::string& can_signal_t::get_generic_name() const +{ + return generic_name_; +} + /** * @fn void find_can_signals(const openxc_DynamicField& key, std::vector<CanSignal*>& found_signals) * @brief return signals name found searching through CAN_signals and OBD2 pid |