Better suited method.
[apps/low-level-can-service.git] / CAN-binder / low-can-binding / can / can-message.hpp
index 5a6e6eb..954fdc3 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/can.h>
 
 #include "../utils/timer.hpp"
-#include "can-message-set.hpp"
 
 #define CAN_MESSAGE_SIZE 8
 
@@ -64,12 +63,16 @@ public:
        can_message_format_t get_format() const;
        uint8_t get_flags() const;
        const uint8_t* get_data() const;
+       const std::vector<uint8_t> get_data_vector() const;
        uint8_t get_length() const;
 
        void set_format(const can_message_format_t new_format);
 
        bool is_correct_to_send();
 
-       static can_message_t convert_from_canfd_frame(const struct canfd_frame& frame, size_t nbytes);
-       canfd_frame convert_to_canfd_frame();
+       static can_message_t convert_from_frame(const canfd_frame& frame, size_t nbytes);
+       static can_message_t convert_from_frame(const can_frame& frame, size_t nbytes);
+
+       struct canfd_frame convert_to_canfd_frame();
+       struct can_frame convert_to_can_frame();
 };