Renaming configuration to application
[apps/agl-service-can-low-level.git] / CAN-binder / low-can-binding / can / can-signals.cpp
index d196c07..324cecc 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "can-signals.hpp"
 
-#include "../binding/configuration.hpp"
+#include "../binding/application.hpp"
 #include "../utils/signals.hpp"
 #include "can-decoder.hpp"
 #include "can-message.hpp"
@@ -94,7 +94,7 @@ can_message_definition_t* can_signal_t::get_message() const
        return parent_;
 }
 
-const std::string& can_signal_t::get_generic_name() const
+const std::string can_signal_t::get_generic_name() const
 {
        return generic_name_;
 }
@@ -104,7 +104,7 @@ const std::string can_signal_t::get_name() const
        return prefix_ + "." + generic_name_;
 }
 
-const std::string& can_signal_t::get_prefix() const
+const std::string can_signal_t::get_prefix() const
 {
        return prefix_;
 }
@@ -215,7 +215,12 @@ void can_signal_t::set_last_value(float val)
        last_value_ = val;
 }
 
-/// @brief Create a RX_SETUP receive job using the BCM socket.
+void can_signal_t::set_timestamp(uint64_t timestamp)
+{
+       frequency_.tick(timestamp);
+}
+
+/// @brief Create a RX_SETUP receive job used by the BCM socket.
 ///
 /// @return 0 if ok else -1
 int can_signal_t::create_rx_filter()
@@ -223,7 +228,7 @@ int can_signal_t::create_rx_filter()
        // Make sure that socket has been opened.
        if(! socket_)
                socket_.open(
-                       get_message()->get_bus_name());
+                       get_message()->get_bus_device_name());
 
        uint32_t can_id  = get_message()->get_id();