diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 18:16:56 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 18:16:56 +0100 |
commit | 8fc21efc5ec7669d38712f44d71d10056614ea64 (patch) | |
tree | 481362d3cb7c744699321fee3d7f346a038c0eee /src/configuration.cpp | |
parent | 29a91626fe9445823ab26157c976b76856901588 (diff) |
Use index number between objects to set their links.
Needed to use generator.
Change-Id: I82b44fa1e53c55e2cd90ae7017906a22b7f0636e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 52ddde42..8a2df909 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -82,6 +82,11 @@ const std::vector<can_message_definition_t>& configuration_t::get_can_message_de return can_message_definition_[active_message_set_]; } +const can_message_definition_t& configuration_t::get_can_message_definition(std::uint8_t message_set_id, std::uint8_t message_id) +{ + return can_message_definition_[message_set_id][message_id]; +} + uint32_t configuration_t::get_signal_id(diagnostic_message_t& sig) const { return sig.get_pid(); |