diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-22 17:38:23 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-22 17:38:23 +0200 |
commit | 8817dc24a26eb829930d0a3c3f4c8a04b748387f (patch) | |
tree | ab4ca342900db65da308efecdbf1f01a5686f1e3 /CAN-binder/low-can-binding/can/can-bus-dev.hpp | |
parent | 1ee784aca5696286f567a4504b22a11cdaa0d0f8 (diff) |
Use BCM socket as default cleaning up the old RAW socket code.
Also use CAN FD frames by default.
Change-Id: I5bad10e537653b1a96c2e3012d38dde8627d3caa
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-bus-dev.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus-dev.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/can/can-bus-dev.hpp b/CAN-binder/low-can-binding/can/can-bus-dev.hpp index 96aa373e..5961214b 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.hpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.hpp @@ -38,8 +38,6 @@ private: int32_t address_; ///< 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. - std::thread th_reading_; ///< Thread handling read the socket can device filling can_message_q_ queue of can_bus_t bool is_running_ = false; ///< boolean telling whether or not reading is running or not void can_reader(can_bus_t& can_bus); @@ -50,7 +48,7 @@ public: std::string get_device_name() const; uint32_t get_address() const; - int open(bool bcm=false); + int open(); void configure(); int close(); |