From abd0190c2ba3a624272ed1f6a3a9c8fe8c4dd140 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 26 Apr 2017 18:25:33 +0200 Subject: Create method to handle both CAN frames. Change-Id: Ie876614266fd2e7089754a8f917d25d316de4c98 Signed-off-by: Romain Forlot Fix: wrong call since renaming of function to more generic name Change-Id: I2adebb855bc815ba6ab14a1002b17d9c9fb293fd Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-message.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CAN-binder/low-can-binding/can/can-message.hpp') diff --git a/CAN-binder/low-can-binding/can/can-message.hpp b/CAN-binder/low-can-binding/can/can-message.hpp index 5a6e6eb..d38f7ba 100644 --- a/CAN-binder/low-can-binding/can/can-message.hpp +++ b/CAN-binder/low-can-binding/can/can-message.hpp @@ -70,6 +70,9 @@ public: 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(); }; -- cgit 1.2.3-korg