aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/signals.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-26 16:19:40 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-11-28 16:11:47 +0100
commitb5401df91ef1ded2430b8337294f9a1d7a5cb77f (patch)
tree95320c0194f28b48f9cd5d7c808f3c707c764fcf /low-can-binding/can/signals.cpp
parent22b1864b72c2520fbc9d4e3d3332c28916b5a9ed (diff)
Update bit position and bit size in signal
It's necessary to change the size of attributes to manage multi packet signal. Bug-AGL : SPEC-2779 Bug-AGL: SPEC-2976 Change-Id: If211c218ffa5a2e81ccfb32d3a5eeae0267e8f74 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/signals.cpp')
-rw-r--r--low-can-binding/can/signals.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/low-can-binding/can/signals.cpp b/low-can-binding/can/signals.cpp
index 3d263431..7d3b7331 100644
--- a/low-can-binding/can/signals.cpp
+++ b/low-can-binding/can/signals.cpp
@@ -30,8 +30,8 @@ std::string signal_t::prefix_ = "messages";
signal_t::signal_t(
std::string generic_name,
- uint8_t bit_position,
- uint8_t bit_size,
+ uint32_t bit_position,
+ uint32_t bit_size,
float factor,
float offset,
float min_value,
@@ -73,8 +73,8 @@ signal_t::signal_t(
signal_t::signal_t(
std::string generic_name,
- uint8_t bit_position,
- uint8_t bit_size,
+ uint32_t bit_position,
+ uint32_t bit_size,
float factor,
float offset,
float min_value,
@@ -119,12 +119,12 @@ const std::string signal_t::get_name() const
return prefix_ + "." + generic_name_;
}
-uint8_t signal_t::get_bit_position() const
+uint32_t signal_t::get_bit_position() const
{
return bit_position_;
}
-uint8_t signal_t::get_bit_size() const
+uint32_t signal_t::get_bit_size() const
{
return bit_size_;
}