diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-01 08:41:29 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-01 08:41:29 +0100 |
commit | 65d08bdea23d81c5d639ab9fac428ccd87673c8d (patch) | |
tree | 0efe5485624867e4b7b3928f438c64ee0a1f54df /src | |
parent | a1a9eedd710c46d533167cf34831cfc867a9bc9d (diff) |
tbf
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r-- | src/can-message.hpp | 22 | ||||
-rw-r--r-- | src/can-signals.hpp | 26 |
2 files changed, 21 insertions, 27 deletions
diff --git a/src/can-message.hpp b/src/can-message.hpp index f076c5ce..6e51d928 100644 --- a/src/can-message.hpp +++ b/src/can-message.hpp @@ -202,4 +202,24 @@ typedef struct CanMessageDefinition CanMessageDefinition; unsigned short signalCount; /*!< signalCount - The number of CAN signals (across all messages) defined for * this message set.*/ unsigned short commandCount; /*!< commandCount - The number of CanCommmands defined for this message set.*/ -} CanMessageSet;
\ No newline at end of file +} CanMessageSet; + +/** Public: Return the currently active CAN configuration. */ +CanMessageSet* getActiveMessageSet(); + +/** Public: Retrive a list of all possible CAN configurations. + * + * Returns a pointer to an array of all configurations. + */ +CanMessageSet* getMessageSets(); + +/** Public: Return the length of the array returned by getMessageSets() */ +int getMessageSetCount(); + +/* Public: Return an array of all CAN messages to be processed in the active + * configuration. + */ +CanMessageDefinition* getMessages(); + +/* Public: Return the length of the array returned by getMessages(). */ +int getMessageCount();
\ No newline at end of file diff --git a/src/can-signals.hpp b/src/can-signals.hpp index 92dfe728..a6248f29 100644 --- a/src/can-signals.hpp +++ b/src/can-signals.hpp @@ -133,29 +133,6 @@ struct CanSignal { }; typedef struct CanSignal CanSignal; -/** Public: Return the currently active CAN configuration. */ -CanMessageSet* getActiveMessageSet(); - -/** Public: Retrive a list of all possible CAN configurations. - * - * Returns a pointer to an array of all configurations. - */ -CanMessageSet* getMessageSets(); - -/** Public: Return the length of the array returned by getMessageSets() */ -int getMessageSetCount(); - -/* Public: Return the number of CAN buses configured in the active - * configuration. This is limited to 2, as the hardware controller only has 2 - * CAN channels. - */ -int getCanBusCount(); - -/* Public: Return an array of all CAN messages to be processed in the active - * configuration. - */ -CanMessageDefinition* getMessages(); - /* Public: Return signals from an signals array filtered on name. */ const std::vector<CanSignal> getSignals(); @@ -163,9 +140,6 @@ const std::vector<CanSignal> getSignals(); /* Public: Return the length of the array returned by getSignals(). */ size_t getSignalCount(); -/* Public: Return the length of the array returned by getMessages(). */ -int getMessageCount(); - /** * @brief Find one or many signals based on its name or id * passed through openxc_DynamicField. |