Remove can-bus-dev following RAW->BCM sockets migration
[apps/agl-service-can-low-level.git] / CAN-binder / low-can-binding / can / can-message.hpp
index 5a6e6eb..94847ef 100644 (file)
 #include <linux/can.h>
 
 #include "../utils/timer.hpp"
-#include "can-message-set.hpp"
 
 #define CAN_MESSAGE_SIZE 8
 
-class can_bus_dev_t;
-
 /**
  * @enum can_message_format_t
  * @brief The ID format for a CAN message.
@@ -64,12 +61,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();
 };