aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
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