decoder: Fix bit_position swapping 12/23212/6
authorCorentin Le Gall <corentin.legall@iot.bzh>
Mon, 18 Nov 2019 15:48:20 +0000 (16:48 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 9 Jan 2020 13:40:41 +0000 (14:40 +0100)
commit77a19477d3cb63b5af519853489cc90ead0a111b
tree9c1b34399e45a8870e3b2d01058e9a6c3481c7e8
parent6cc152447e74b1ce7fab6c7aa1f9b4e5e8232444
decoder: Fix bit_position swapping

-Added an attribute to signals that tells if the bit_position
has been swapped.
-Test if bit_size and bit_position gives an "out of range" data

Bug-AGL: SPEC-3022

Change-Id: I589565ca923ec807da2d4f0db7c4c92fb737b579
Signed-off-by: Corentin Le Gall <corentin.legall@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/can/can-decoder.cpp
low-can-binding/can/signals.cpp
low-can-binding/can/signals.hpp
low-can-binding/utils/converter.cpp