diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-08 02:41:56 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:09:03 +0100 |
commit | 2049aca0927b55f2a256fd60ff686616b73eecb7 (patch) | |
tree | eb4e195c796aa5cc69bdedd772a659b4f83fe9d9 /src/can/can-message.hpp | |
parent | 64d3ead0ce87091a3489dd9796a9f77f241c468b (diff) |
Beginning of work of get central configuration object
that will be used by the binding to access generated
elements. It will hold generated structure/objects and
make a resume to the binding configuration.
Idea is to have an object that can be inherited
in the generated code to extend its functionnalities
or change some of its behoviors.
Change-Id: If2ce5cbe2eb98a74a8e3f13000ee02855674216f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can/can-message.hpp')
-rw-r--r-- | src/can/can-message.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/can/can-message.hpp b/src/can/can-message.hpp index b118ce72..38a8e598 100644 --- a/src/can/can-message.hpp +++ b/src/can/can-message.hpp @@ -130,6 +130,21 @@ typedef struct CanMessageDefinition CanMessageDefinition; unsigned short commandCount; /*!< commandCount - The number of CanCommmands defined for this message set.*/ } CanMessageSet; +class can_message_set_t +{ + private: + uint8_t index; /*!<index - A numerical ID for the message set, ideally the index in an array + * for fast lookup*/ + const std::string name; /*!< name - The name of the message set.*/ + uint8_t can_bus_count; /*!< busCount - The number of CAN buses defined for this message set.*/ + unsigned short can_message_count; /*!< messageCount - The number of CAN messages (across all buses) defined for + * this message set.*/ + unsigned short can_signal_count; /*!< signalCount - The number of CAN signals (across all messages) defined for + * this message set.*/ + unsigned short can_command_count; /*!< commandCount - The number of CanCommmands defined for this message set.*/ + unsigned short obd2_signal_count; /*!< commandCount - The number of obd2 signals defined for this message set.*/ +}; + /** Public: Return the currently active CAN configuration. */ CanMessageSet* getActiveMessageSet(); |