aboutsummaryrefslogtreecommitdiffstats
path: root/src/openxc/can_message.hpp
diff options
context:
space:
mode:
authorArthur Guyader <arthurguyader@gmail.com>2019-04-24 13:28:23 +0200
committerArthur Guyader <arthur.guyader@iot.bzh>2019-07-01 17:06:54 +0200
commit8863689b9b1649cc05303c643340f5f099e5e286 (patch)
tree0fb199060d81f3c986301246b6081e45f76b5263 /src/openxc/can_message.hpp
parentda429cc20fb3725e2af764fbdfc6ed6e4f210907 (diff)
Add modification for j1939 low-cansandbox/amalrik/j1939
Change-Id: I36d74f76e311b082cd492425a1fb57e48ad695ed Signed-off-by: Arthur Guyader <arthurguyader@gmail.com>
Diffstat (limited to 'src/openxc/can_message.hpp')
-rwxr-xr-xsrc/openxc/can_message.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/openxc/can_message.hpp b/src/openxc/can_message.hpp
index f2d1b6e..3d92b18 100755
--- a/src/openxc/can_message.hpp
+++ b/src/openxc/can_message.hpp
@@ -22,13 +22,19 @@ namespace openxc
float max_signal_frequency_;
bool force_send_changed_;
bool force_send_changed_signals_;
- bool is_fd_;
+ bool is_fd_;
+ bool is_j1939_;
+ uint32_t length_;
+ float min_value;
+ float max_value;
public:
std::string id() const;
void id(const std::string& id);
void is_fd(const bool is_fd);
bool is_fd() const;
+ void is_j1939(const bool is_j1939);
+ bool is_j1939() const;
std::string bus() const;
bool bit_numbering_inverted() const;
const std::vector<signal>& signals() const;
@@ -39,6 +45,7 @@ namespace openxc
float max_signal_frequency() const;
bool force_send_changed() const;
bool force_send_changed_signals() const;
+ uint32_t length() const;
void from_json(const nlohmann::json& j);
nlohmann::json to_json() const;