diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-07-30 11:06:55 +0200 |
---|---|---|
committer | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-07-30 11:28:48 +0200 |
commit | f61a6cb23ab86da2b3d477276886f1e73ec5c88c (patch) | |
tree | 0216631d7aa242d86e48b02afdaaf9747d2c2632 /src/openxc/signal.hpp | |
parent | 0bb5744297d7d25577b5ed48899c021e23e9a8ec (diff) |
Add some options for J1939 support
This commit add some options for the support of the J1939.
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Change-Id: I9baee6a7319c8e8effa988d940a67e45ab64496d
Diffstat (limited to 'src/openxc/signal.hpp')
-rwxr-xr-x | src/openxc/signal.hpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/openxc/signal.hpp b/src/openxc/signal.hpp index e0124c3..750926b 100755 --- a/src/openxc/signal.hpp +++ b/src/openxc/signal.hpp @@ -21,11 +21,16 @@ namespace openxc bool ignore_;
bool enabled_;
std::map<std::string, std::vector<std::uint32_t>> states_;
- float max_frequency_;
+ float max_frequency_;
bool send_same_;
bool force_send_changed_;
bool writable_;
std::string encoder_;
+ std::pair<bool,int> multiplex_;
+ bool is_big_endian_;
+ bool is_signed_;
+ std::string unit_;
+
public:
std::string id() const;
void id(const std::string& id);
@@ -43,7 +48,11 @@ namespace openxc bool force_send_changed() const;
bool writable() const;
std::string encoder() const;
-
+ std::pair<bool,int> multiplex() const;
+ bool is_big_endian() const;
+ bool is_signed() const;
+ std::string unit() const;
+
void from_json(const nlohmann::json& j);
nlohmann::json to_json() const;
};
|