summaryrefslogtreecommitdiffstats
path: root/src/can/can-bus-dev.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-08 23:10:44 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commitccd244c10988cd59d6f0b35e1b83a5eebd7bfb01 (patch)
tree3b8584ac6569fc43be3558950fca99242b57f222 /src/can/can-bus-dev.hpp
parent8cc56c40c96a63b157ee11ac7fd2494ffa63357d (diff)
Cleaning old can_bus_dev_t now implemented
separatly Change-Id: I4529100f118afe25aee747d36a77dc5b533878a5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Conflicts: src/can/can-bus.hpp
Diffstat (limited to 'src/can/can-bus-dev.hpp')
-rw-r--r--src/can/can-bus-dev.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/can/can-bus-dev.hpp b/src/can/can-bus-dev.hpp
index 83a1b30e..d7c3458e 100644
--- a/src/can/can-bus-dev.hpp
+++ b/src/can/can-bus-dev.hpp
@@ -29,14 +29,14 @@ class can_message_t;
/// @brief Object representing a can device. Handle opening, closing and reading on the
/// socket. This is the low level object to be use by can_bus_t.
-class can_bus_dev_t
+class can_bus_dev_t
{
private:
std::string device_name_;
utils::socket_t can_socket_;
int32_t id_; /// < an identifier used through binding that refer to that device
-
+
bool is_fdmode_on_; /// < boolean telling if whether or not the can socket use fdmode.
struct sockaddr_can txAddress_; /// < internal member using to bind to the socket
@@ -55,6 +55,6 @@ public:
void stop_reading();
std::pair<struct canfd_frame&, size_t> read();
-
+
int send_can_message(can_message_t& can_msg);
};