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.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.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CAN-binder/low-can-binding/can/can-bus.hpp b/CAN-binder/low-can-binding/can/can-bus.hpp index 764218d8..2194fa22 100644 --- a/CAN-binder/low-can-binding/can/can-bus.hpp +++ b/CAN-binder/low-can-binding/can/can-bus.hpp @@ -27,6 +27,7 @@ #include "openxc.pb.h" #include "can-message.hpp" #include "can-bus-dev.hpp" +#include "can-signals.hpp" #include "../utils/config-parser.hpp" #include "../diagnostic/active-diagnostic-request.hpp" @@ -90,6 +91,8 @@ public: openxc_VehicleMessage next_vehicle_message(); void push_new_vehicle_message(const openxc_VehicleMessage& v_msg); + int create_rx_filter(const can_signal_t& signal); + const std::map<std::string, std::shared_ptr<can_bus_dev_t>>& get_can_devices() const; static std::shared_ptr<can_bus_dev_t> get_can_device(std::string bus); }; |