X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Fcan%2Fcan-bus-dev.hpp;h=973c8cfa994f2375cfe3529024b5cc98b92e6bda;hb=3d3fbfd56b476a1f36bfc9cabf5a21f981d06844;hp=8b4cf47ec74912501f4dd5933be2298e47b4cbec;hpb=e00c07be2835dd082862730189c87baacbfbdbeb;p=apps%2Fagl-service-can-low-level.git 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 8b4cf47e..973c8cfa 100644 --- a/CAN-binder/low-can-binding/can/can-bus-dev.hpp +++ b/CAN-binder/low-can-binding/can/can-bus-dev.hpp @@ -22,7 +22,7 @@ #include #include -#include "../utils/socketcan.hpp" +#include "../utils/socketcan-raw.hpp" class can_bus_t; class can_message_t; @@ -34,9 +34,9 @@ class can_bus_dev_t { private: std::string device_name_; ///< a string identifier identitfying the linux CAN device. - utils::socketcan_t can_socket_; + utils::socketcan_raw_t can_socket_; ///< can_socket_ - A Raw socket attached to a specified device - int index_; + int index_; ///< index_ - An index number, it's the index number to access this object using the can_devices_ map from can_bus_t class 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 @@ -58,7 +58,6 @@ public: void stop_reading(); can_message_t read(); - int create_rx_filter(const can_signal_t& s); int send(can_message_t& can_msg); bool shims_send(const uint32_t arbitration_id, const uint8_t* data, const uint8_t size);