X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fcan%2Fcan-signals.hpp;h=ea8c077b345cceec4201855a61e7182c3018e4d2;hb=ddd4374f35df2d8b8e9b4ecf4890abba6fab3734;hp=f7ff0372627206265883e412dfd0fb91b8898bbe;hpb=7aed41f1bdfc76eae902d289fce699b8fde40871;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/can/can-signals.hpp b/low-can-binding/can/can-signals.hpp index f7ff0372..ea8c077b 100644 --- a/low-can-binding/can/can-signals.hpp +++ b/low-can-binding/can/can-signals.hpp @@ -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& 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();