Separation of classes in the same file.
[apps/agl-service-can-low-level.git] / src / can / can-message.cpp
index 604d676..cd4a81e 100644 (file)
  * limitations under the License.
  */
 
-#include "can/can-message.hpp"
+#include "can-message.hpp"
 
 #include <cstring>
 
-#include "low-can-binding.hpp"
+#include "../low-can-binding.hpp"
 
-/********************************************************************************
-*
-*              CanMessage method implementation
-*
-*********************************************************************************/
 /**
 * @brief Class constructor
 *
@@ -201,7 +196,7 @@ can_message_t can_message_t::convert_from_canfd_frame(const struct canfd_frame&
                        else
                        {
                                length = (frame.len > maxdlen) ? maxdlen : frame.len;
-                       }       
+                       }
                }
        }
        else
@@ -252,18 +247,3 @@ canfd_frame can_message_t::convert_to_canfd_frame()
 
        return frame;
 }
-
-/********************************************************************************
-*
-*              can_message_definition_t method implementation
-*
-*********************************************************************************/
-
-can_message_definition_t::can_message_definition_t(can_bus_dev_t& cbd)
-       : bus_{cbd}, last_value_(CAN_MESSAGE_SIZE)
-{}
-
-uint32_t can_message_definition_t::get_id() const
-{
-       return id_;
-}