diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-24 19:15:07 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-24 19:15:07 +0200 |
commit | 84264431ca5a9958b3bb00b3de481336cf0cccb1 (patch) | |
tree | 068c4a89e3b79db33f0ee6e607ae6cbbbf1eb14b /CAN-binder/low-can-binding/can/can-bus-dev.hpp | |
parent | 901a27b0631909647137f49ccf12f4e9bfe38817 (diff) |
Create a received job for BCM Socket to handle filtering.
Filter is created using can_signals description and send with appropriate
BCM header structure. This is the simplest way to do, no temporal filtering
for now is available.
Change-Id: Iee49f011ba9316880735d2765c1c23a8b2d3c4d2
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, 3 insertions, 1 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 5961214..04914ce 100644 --- 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 "../utils/socket.hpp" +#include "../utils/socketcan.hpp" 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. @@ -57,6 +58,7 @@ 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); |