diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-26 16:19:11 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-28 16:11:47 +0100 |
commit | aeeb786722b5cdeabff5568b40f7075dc23140b9 (patch) | |
tree | 95ae1bf9efcfdad6fa94247cc9c310465257742d /low-can-binding/can/message/can-message.hpp | |
parent | dfc20c88b083f06aad5048f2facf4cbde1ea3de4 (diff) |
Add function to convert vector to canfd or can frame.
This commit allows to convert the data vector to canfd or
can frame. In the two cases the struct is a canfd frame,
but if the type is not fd, the max size of a frame is 8.
Bug-AGL : SPEC-2779
Bug-AGL: SPEC-2976
Change-Id: I60edf6a602a47572d5e5bfb508c7ca6d8761832b
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/message/can-message.hpp')
-rw-r--r-- | low-can-binding/can/message/can-message.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/low-can-binding/can/message/can-message.hpp b/low-can-binding/can/message/can-message.hpp index 0f8bc9b5..9e75887f 100644 --- a/low-can-binding/can/message/can-message.hpp +++ b/low-can-binding/can/message/can-message.hpp @@ -46,6 +46,7 @@ class can_message_t : public message_t { static std::shared_ptr<can_message_t> convert_from_frame(const canfd_frame& frame, size_t nbytes, uint64_t timestamp); struct canfd_frame convert_to_canfd_frame(); + struct std::vector<canfd_frame> convert_to_canfd_frame_vector(); struct can_frame convert_to_can_frame(); bool is_correct_to_send(); |