Change FrequencyClock struct to class and rename it.
[apps/agl-service-can-low-level.git] / src / can / can-message.hpp
index 0494f5f..629fb93 100644 (file)
@@ -69,7 +69,7 @@ public:
 
        bool is_correct_to_send();
 
-static can_message_t convert_to_canfd_frame(const struct canfd_frame& frame, size_t nbytes);
+static can_message_t convert_from_canfd_frame(const struct canfd_frame& frame, size_t nbytes);
        canfd_frame convert_to_canfd_frame();
 };
 
@@ -86,7 +86,7 @@ class can_message_definition_t
        can_bus_dev_t& bus_; /*!< bus_ - A pointer to the bus this message is on. */
        uint32_t id_; /*!< id_ - The ID of the message.*/
        can_message_format_t format_; /*!< format_ - the format of the message's ID.*/
-       FrequencyClock clock_; /*!<  clock_ - an optional frequency clock to control the output of this
+       frequency_clock_t clock_; /*!<  clock_ - an optional frequency clock to control the output of this
                                                        *      message, if sent raw, or simply to mark the max frequency for custom
                                                        *      handlers to retrieve.*/
        bool force_send_changed_; /*!< force_send_changed_ - If true, regardless of the frequency, it will send CAN
@@ -96,7 +96,7 @@ class can_message_definition_t
                                                                                  *     needs to compare an incoming CAN message with the previous frame.*/
        
        public:
-         can_message_definition_t();
+         can_message_definition_t(can_bus_dev_t& cbd);
                uint32_t get_id() const;
 };