summaryrefslogtreecommitdiffstats
path: root/src/openxc/signal.cpp
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-03-16 09:54:02 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2017-03-16 09:54:02 +0100
commitfbd0fb6d5f38f7a12f3bebb4a7fb14bd3e6bfb7c (patch)
treef03dc9d234c145aadc55d3aad4ca7e867000b3a6 /src/openxc/signal.cpp
parentfa8c58708fe0fa8a0f4a88293e0eed196494f020 (diff)
wip: generation of a configuration for can_signaling.
Change-Id: I35b31a98e87943a4e2fcad06561fec7a347b8483 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/openxc/signal.cpp')
-rwxr-xr-xsrc/openxc/signal.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/openxc/signal.cpp b/src/openxc/signal.cpp
index 9406112c..6c3ff82a 100755
--- a/src/openxc/signal.cpp
+++ b/src/openxc/signal.cpp
@@ -2,6 +2,18 @@
namespace openxc
{
+ std::string signal::id() const
+ {
+ return id_;
+ }
+
+ void signal::id(const std::string& id)
+ {
+ id_ = id;
+ }
+
+ void id(const std::string& id);
+
std::string signal::generic_name() const
{
return generic_name_;
@@ -47,7 +59,7 @@ namespace openxc
return states_;
}
- std::uint32_t signal::max_frequency() const
+ float signal::max_frequency() const
{
return max_frequency_;
}