aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-12-15 15:21:34 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit466fa12ede042ea273828f801fbcab24196c4d60 (patch)
tree7a6714b095f5cd0c6337d0850e3e0b39cd059e68 /low-can-binding
parent05e0dcd47f5cbe62de594c801f1c460622847716 (diff)
Update flag FRAME_LAYOUT_IS_BIGENDIAN to BYTE_FRAME_IS_BIG_ENDIAN
Change-Id: I13a3392aecd8d57fac6f94346c4cf209595775b4 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding')
-rw-r--r--low-can-binding/can/can-decoder.cpp2
-rw-r--r--low-can-binding/can/message-definition.cpp2
-rw-r--r--low-can-binding/can/message/message.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/low-can-binding/can/can-decoder.cpp b/low-can-binding/can/can-decoder.cpp
index 3f05fd53..160a22b1 100644
--- a/low-can-binding/can/can-decoder.cpp
+++ b/low-can-binding/can/can-decoder.cpp
@@ -112,7 +112,7 @@ float decoder_t::parse_signal_bitfield(signal_t& signal, std::shared_ptr<message
bit_position = converter_t::bit_position_swap(message->get_length(),
signal.get_bit_position(),
bit_size);
- if(signal.get_message()->get_flags() & FRAME_LAYOUT_IS_BIGENDIAN)
+ if(signal.get_message()->get_flags() & BYTE_FRAME_IS_BIG_ENDIAN)
message->frame_swap();
data = message->get_data_vector();
diff --git a/low-can-binding/can/message-definition.cpp b/low-can-binding/can/message-definition.cpp
index 8184e983..dab502af 100644
--- a/low-can-binding/can/message-definition.cpp
+++ b/low-can-binding/can/message-definition.cpp
@@ -113,5 +113,5 @@ uint32_t message_definition_t::get_flags() const
}
bool message_definition_t::frame_layout_is_bigendian() const{
- return (flags_ & FRAME_LAYOUT_IS_BIGENDIAN);
+ return (flags_ & BYTE_FRAME_IS_BIG_ENDIAN);
}
diff --git a/low-can-binding/can/message/message.hpp b/low-can-binding/can/message/message.hpp
index 2c27f1f3..ce488c06 100644
--- a/low-can-binding/can/message/message.hpp
+++ b/low-can-binding/can/message/message.hpp
@@ -42,7 +42,7 @@
#define ISOTP_PROTOCOL 0x0010
#define ISOTP_SEND 0x0020
#define ISOTP_RECEIVE 0x0040
-#define FRAME_LAYOUT_IS_BIGENDIAN 0x0080
+#define BYTE_FRAME_IS_BIG_ENDIAN 0x0080
#define BIT_POSITION_REVERSED 0x0100
#define CONTINENTAL_BIT_POSITION 0x0200
#define INVALID_FLAG 0x8000