From f516a1228e83c7921a326f52e0055f69fd429fe8 Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Wed, 14 Aug 2019 13:22:15 +0200 Subject: Add function remove last bcm frame This commit creates the function remove_last_bcm_frame. This function removes the last bcm frame of the subscription. Bug-AGL : SPEC-2779 Change-Id: I5bb6f07a8d677c4aa882549fc1950f00a0b1da04 Signed-off-by: Arthur Guyader --- low-can-binding/binding/low-can-subscription.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'low-can-binding/binding/low-can-subscription.hpp') diff --git a/low-can-binding/binding/low-can-subscription.hpp b/low-can-binding/binding/low-can-subscription.hpp index d0462ecb..b5d4f7aa 100644 --- a/low-can-binding/binding/low-can-subscription.hpp +++ b/low-can-binding/binding/low-can-subscription.hpp @@ -93,6 +93,7 @@ public: static struct bcm_msg make_bcm_head(uint32_t opcode, uint32_t can_id = 0, uint32_t flags = 0, const struct timeval& timeout = {0,0}, const struct timeval& frequency_thinning = {0,0}); static void add_one_bcm_frame(struct canfd_frame& cfd, struct bcm_msg& bcm_msg); + static void remove_last_bcm_frame(struct bcm_msg& bcm_msg); static int open_socket(low_can_subscription_t &subscription, const std::string& bus_name = "", socket_type type = socket_type::INVALID); -- cgit 1.2.3-korg