Correct errors in comments
[apps/agl-service-can-low-level.git] / low-can-binding / can / can-signals.hpp
index f7ff037..ea8c077 100644 (file)
@@ -56,7 +56,7 @@ typedef openxc_DynamicField (*signal_decoder)(can_signal_t& signal, float value,
 /// A signal_encoder transforms a number, string or boolean into a raw floating
 /// point value that fits in the CAN signal.
 ///
-/// @param[in] signal - The CAN signal to encode. 
+/// @param[in] signal - The CAN signal to encode.
 /// @param[in] value - The dynamic field to encode.
 /// @param[out] send - An output parameter. If the encoding failed or the CAN signal should
 /// not be encoded for some other reason, this will be flipped to false.
@@ -133,6 +133,7 @@ public:
        bool get_force_send_changed() const;
        const std::map<uint8_t, std::string>& get_states() const;
        const std::string get_states(uint8_t value);
+       uint64_t get_states(const std::string& value) const;
        size_t get_state_count() const;
        bool get_writable() const;
        signal_decoder& get_decoder();