Don't collide with application framework ERROR in some configuration.
[apps/low-level-can-service.git] / CAN-binder / low-can-binding / can / can-message.hpp
index d38f7ba..3fde5f1 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.
@@ -36,7 +33,7 @@ class can_bus_dev_t;
 enum class can_message_format_t {
        STANDARD, /*!< STANDARD - standard 11-bit CAN arbitration ID. */
        EXTENDED, /*!< EXTENDED - an extended frame, with a 29-bit arbitration ID. */
-       ERROR,    /*!< ERROR - ERROR code used at initialization to signify that it isn't usable'*/
+       INVALID,    /*!< INVALID - INVALID code used at initialization to signify that it isn't usable'*/
 };
 
 /**
@@ -64,6 +61,7 @@ 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);