summaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/message-definition.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-12-08 10:55:57 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit3addbcc4f55657f45be76be9f0f736a68e75ea04 (patch)
treee6da5d7f0bc7d8fe7687723c4da2f0d2a2777db1 /low-can-binding/can/message-definition.cpp
parent3c7fa35fe09693f367ee9b159723435007ebfa07 (diff)
message: Default frame layout as little endian.
Change the flags to be enable if frame use big endian rather than little Change-Id: I09ae9c54f1d807da4e740457cf04a001723edb0e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/message-definition.cpp')
-rw-r--r--low-can-binding/can/message-definition.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/low-can-binding/can/message-definition.cpp b/low-can-binding/can/message-definition.cpp
index 5935f726..6989a909 100644
--- a/low-can-binding/can/message-definition.cpp
+++ b/low-can-binding/can/message-definition.cpp
@@ -111,6 +111,6 @@ uint32_t message_definition_t::get_flags() const
return flags_;
}
-bool message_definition_t::frame_layout_is_little() const{
- return (flags_ & FRAME_LAYOUT_IS_LE);
+bool message_definition_t::frame_layout_is_bigendian() const{
+ return (flags_ & FRAME_LAYOUT_IS_BIGENDIAN);
}