instance to initialize it as it is reference.
Change-Id: I0261a5e2fdca5a84fd736d7ceae837ff9156b935
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
*
*********************************************************************************/
-can_message_definition_t::can_message_definition_t()
- : last_value_(CAN_MESSAGE_SIZE)
+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
* 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;
};