X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdiagnostic%2Fdiagnostic-message.hpp;h=064904d2cd43d0338dd5f23a008f7f0bdd755e14;hb=7591838644a3fcb5145b9ccc7200166debe7ba87;hp=ae37d7d7e92d29afdb97999466f604d924237266;hpb=1ee222a7250896fc7f2e5fb1dc50a7466d81b741;p=apps%2Fagl-service-can-low-level.git diff --git a/src/diagnostic/diagnostic-message.hpp b/src/diagnostic/diagnostic-message.hpp index ae37d7d7..064904d2 100644 --- a/src/diagnostic/diagnostic-message.hpp +++ b/src/diagnostic/diagnostic-message.hpp @@ -18,14 +18,12 @@ #pragma once #include +#include #include "uds/uds.h" -#include "../can/can-bus.hpp" #include "../can/can-message.hpp" #include "active-diagnostic-request.hpp" -#include "../low-can-binding.hpp" - enum UNIT { POURCENT, DEGREES_CELSIUS, @@ -40,23 +38,23 @@ enum UNIT { INVALID }; -/** - * @brief - A representation of an OBD-II PID. - */ +/// +/// @brief - A representation of an OBD-II PID. +/// class diagnostic_message_t { private: - uint8_t pid_; /*!< pid - The 1 byte PID.*/ + uint8_t pid_; /*!< pid_ - The 1 byte PID.*/ std::string generic_name_; /*!< generic_name_ - A human readable name to use for this PID when published.*/ int min_; /*!< min_ - Minimum value that can take this pid */ int max_; /*!< max_ - Maximum value that can take this pid */ enum UNIT unit_; /*!< unit_ : Which unit system is used by that pid. See enum UNIT above.*/ - float frequency_; /*!< frequency - The frequency to request this PID if supported by the vehicle when automatic, recurring OBD-II requests are enabled.*/ + float frequency_; /*!< frequency_ - The frequency to request this PID if supported by the vehicle when automatic, recurring OBD-II requests are enabled.*/ DiagnosticResponseDecoder decoder_; /*!< decoder_ - An optional DiagnosticResponseDecoder to parse the payload of responses * to this request. If the decoder is NULL, the output will include the raw payload * instead of a parsed value.*/ DiagnosticResponseCallback callback_; /*!< callback_ - An optional DiagnosticResponseCallback to be notified whenever a * response is received for this request.*/ - + bool supported_; /*!< supported_ - boolean indicating whether this pid is supported by the vehicle or not.*/ public: