From fbd0fb6d5f38f7a12f3bebb4a7fb14bd3e6bfb7c Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Thu, 16 Mar 2017 09:54:02 +0100 Subject: wip: generation of a configuration for can_signaling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I35b31a98e87943a4e2fcad06561fec7a347b8483 Signed-off-by: Loïc Collignon --- src/openxc/signal.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/openxc/signal.hpp') diff --git a/src/openxc/signal.hpp b/src/openxc/signal.hpp index f4b6683b..64dba75e 100755 --- a/src/openxc/signal.hpp +++ b/src/openxc/signal.hpp @@ -11,6 +11,7 @@ namespace openxc class signal { private: + std::string id_; std::string generic_name_; std::uint32_t bit_position_; std::uint32_t bit_size_; @@ -20,12 +21,14 @@ namespace openxc bool ignore_; bool enabled_; std::map> states_; - std::uint32_t max_frequency_; + float max_frequency_; bool send_same_; bool force_send_changed_; bool writable_; std::string encoder_; public: + std::string id() const; + void id(const std::string& id); std::string generic_name() const; std::uint32_t bit_position() const; std::uint32_t bit_size() const; @@ -35,7 +38,7 @@ namespace openxc bool ignore() const; bool enabled() const; const std::map>& states() const; - std::uint32_t max_frequency() const; + float max_frequency() const; bool send_same() const; bool force_send_changed() const; bool writable() const; -- cgit 1.2.3-korg