X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Fdiagnostic%2Factive-diagnostic-request.hpp;h=e9e660dc9f97084346fc5fa7798ee6f9a03b2663;hb=b7636ce2e39aa2e3ac2d75fe9848a591a4ad9758;hp=247eeb17d2b62bace261ed0344a688941111d01d;hpb=f44a5b1549bc4c8a84d0dedf4a8b1e4220a34f42;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.hpp b/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.hpp index 247eeb17..e9e660dc 100644 --- a/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.hpp +++ b/CAN-binder/low-can-binding/diagnostic/active-diagnostic-request.hpp @@ -20,10 +20,10 @@ #include #include +#include "../utils/socketcan-bcm.hpp" #include "uds/uds.h" #include "uds/uds_types.h" #include "../utils/timer.hpp" -#include "../can/can-bus-dev.hpp" class active_diagnostic_request_t; class diagnostic_manager_t; @@ -85,6 +85,7 @@ private: ///< recurring request. If the request is not reecurring, this attribute is not used. frequency_clock_t timeout_clock_; ///< timeout_clock_ - A frequency_clock_t object to monitor how long it's been since ///< this request was sent. + utils::socketcan_bcm_t socket_; ///< socket_ - A BCM socket setup to send cyclic message to CAN ID 7DF. public: bool operator==(const active_diagnostic_request_t& b); active_diagnostic_request_t& operator=(const active_diagnostic_request_t& adr); @@ -97,7 +98,6 @@ public: const DiagnosticResponseCallback callback, float frequencyHz); uint32_t get_id() const; - const std::shared_ptr get_can_bus_dev() const; DiagnosticRequestHandle* get_handle(); uint16_t get_pid() const; const std::string get_name() const; @@ -108,6 +108,7 @@ public: bool get_in_flight() const; frequency_clock_t& get_frequency_clock(); frequency_clock_t& get_timeout_clock(); + utils::socketcan_bcm_t& get_socket(); void set_handle(DiagnosticShims& shims, DiagnosticRequest* request); void set_in_flight(bool val);