Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Create a received job for BCM Socket to handle filtering.
[apps/low-level-can-service.git]
/
CAN-binder
/
low-can-binding
/
can
/
can-bus-dev.hpp
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
5961214
..
04914ce
100644
(file)
--- a/
CAN-binder/low-can-binding/can/can-bus-dev.hpp
+++ b/
CAN-binder/low-can-binding/can/can-bus-dev.hpp
@@
-23,10
+23,11
@@
#include <string>
#include <thread>
#include <string>
#include <thread>
-#include "../utils/socket.hpp"
+#include "../utils/socket
can
.hpp"
class can_bus_t;
class can_message_t;
class can_bus_t;
class can_message_t;
+class can_signal_t;
/// @brief Object representing a can device. Handle opening, closing and reading on the
/// socket. This is the low level object to be initialized and use by can_bus_t.
/// @brief Object representing a can device. Handle opening, closing and reading on the
/// socket. This is the low level object to be initialized and use by can_bus_t.
@@
-57,6
+58,7
@@
public:
void stop_reading();
can_message_t read();
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);
int send(can_message_t& can_msg);
bool shims_send(const uint32_t arbitration_id, const uint8_t* data, const uint8_t size);