diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-09 02:32:25 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:40 +0100 |
commit | 0ee5e30844ecd1749d6d7c48b8ce8f6573ed91cb (patch) | |
tree | 713b053d2f1783f6074596be6e4def3d47213513 /src/can/can-signals.hpp | |
parent | fe5a4857985fd00b961c63274e678c8df19feaee (diff) |
Create getter/setter needed for can_signal_t class.
Change-Id: I8253fcbe7edb6673d9f6bcf85d6109800a4cf6e8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-signals.hpp')
-rw-r--r-- | src/can/can-signals.hpp | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/can/can-signals.hpp b/src/can/can-signals.hpp index 1100ab10..a4f01eb2 100644 --- a/src/can/can-signals.hpp +++ b/src/can/can-signals.hpp @@ -107,8 +107,26 @@ private: * this value is undefined. */ public: - can_message_definition_t& get_message() const; - std::string& get_generic_name() const; -}; + can_message_definition_t& get_message(); + std::string& get_generic_name(); + uint8_t get_bit_position() const; + uint8_t get_bit_size() const; + float get_factor() const; + float get_offset() const; + float get_min_value() const; + float get_max_value() const; + FrequencyClock& get_frequency(); + bool get_send_same() const; + bool get_force_send_changed() const; + std::map<int, std::string> get_state() const; + size_t get_state_count() const; + bool get_writable() const; + SignalDecoder& get_decoder(); + SignalEncoder& get_encoder(); + bool get_received() const; + float get_last_value() const; -void find_can_signals(const openxc_DynamicField &key, std::vector<can_signal_t*>& found_signals);
\ No newline at end of file + void set_received(bool r); +void find_can_signals(const openxc_DynamicField &key, std::vector<can_signal_t*>& found_signals); void set_received(bool r); + void set_last_value(float val); +};
\ No newline at end of file |