#include <string>
#include <thread>
-#include "../utils/socketcan.hpp"
+#include "../utils/socketcan-raw.hpp"
class can_bus_t;
class can_message_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_;
int index_;
void can_reader(can_bus_t& can_bus);
public:
- can_bus_dev_t(const std::string& dev_name, int32_t address);
+ can_bus_dev_t(const std::string& dev_name, int index);
std::string get_device_name() const;
int get_index() const;
+ utils::socketcan_t& get_socket();
int open();
void configure();