diff options
Diffstat (limited to 'src/can/can-bus-dev.hpp')
-rw-r--r-- | src/can/can-bus-dev.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/can/can-bus-dev.hpp b/src/can/can-bus-dev.hpp index 59d999f1..744f53fa 100644 --- a/src/can/can-bus-dev.hpp +++ b/src/can/can-bus-dev.hpp @@ -18,6 +18,7 @@ #pragma once +#include <stdint.h> #include <string> #include <thread> #include <linux/can.h> @@ -54,8 +55,8 @@ public: void stop_reading(); - std::pair<struct canfd_frame&, size_t> read(); + can_message_t read(); int send_can_message(can_message_t& can_msg); - static bool send_can_message(const uint16_t arbitration_id, const uint8_t* data, const uint8_t size); + static bool send_can_message(const uint32_t arbitration_id, const uint8_t* data, const uint8_t size); }; |