diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-08 12:41:09 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-09 11:43:31 +0200 |
commit | ce2bd1c557ae2cb44db1794909f129e82286c305 (patch) | |
tree | db07d6dc4c357485801015240e1449add0f14b2e /CAN-binder/low-can-binding/utils/socketcan-bcm.cpp | |
parent | 5206b26e1a6811d142ffbaf12daaea0731345490 (diff) |
Comments, Cleanup, format
Change-Id: I9f032cc232e77ce73e889a1656f1ad86cfdec774
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/utils/socketcan-bcm.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/utils/socketcan-bcm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan-bcm.cpp b/CAN-binder/low-can-binding/utils/socketcan-bcm.cpp index 76bc6ac..5ee4b1a 100644 --- a/CAN-binder/low-can-binding/utils/socketcan-bcm.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan-bcm.cpp @@ -67,6 +67,9 @@ namespace utils return socket_; } + /// Read the socket to retrieve the associated CAN message. All the hard work is do into + /// convert_from_frame method and if there isn't CAN message retrieve, only BCM head struct, + /// then CAN message will be zeroed and must be handled later. socketcan_bcm_t& operator>>(socketcan_bcm_t& s, can_message_t& cm) { struct utils::simple_bcm_msg msg; |