2 * Copyright (C) 2015, 2016 "IoT.bzh"
3 * Author "Romain Forlot" <romain.forlot@iot.bzh>
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #include "can/can-signals.hpp"
22 #include "utils/signals.hpp"
23 #include "can/can-decoder.hpp"
24 #include "obd2/obd2-signals.hpp"
25 #include "low-can-binding.hpp"
27 can_message_definition_t& can_signal_t::get_message()
32 std::string& can_signal_t::get_generic_name()
37 uint8_t can_signal_t::get_bit_position() const
42 uint8_t can_signal_t::get_bit_size() const
47 float can_signal_t::get_factor() const
52 float can_signal_t::get_offset() const
57 float can_signal_t::get_min_value() const
62 float can_signal_t::get_max_value() const
67 FrequencyClock& can_signal_t::get_frequency()
72 bool can_signal_t::get_send_same() const
77 bool can_signal_t::get_force_send_changed() const
79 return force_send_changed_;
82 std::map<int, std::string> can_signal_t::get_state() const
87 size_t can_signal_t::get_state_count() const
89 return states_.size();
92 bool can_signal_t::get_writable() const
97 SignalDecoder& can_signal_t::get_decoder()
102 SignalEncoder& can_signal_t::get_encoder()
107 bool can_signal_t::get_received() const
111 float can_signal_t::get_last_value() const
116 void can_signal_t::set_received(bool r)
121 void can_signal_t::set_last_value(float val)