summaryrefslogtreecommitdiffstats
path: root/src/can-message.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-01 08:41:29 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-01 08:41:29 +0100
commit65d08bdea23d81c5d639ab9fac428ccd87673c8d (patch)
tree0efe5485624867e4b7b3928f438c64ee0a1f54df /src/can-message.hpp
parenta1a9eedd710c46d533167cf34831cfc867a9bc9d (diff)
tbf
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-message.hpp')
-rw-r--r--src/can-message.hpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/can-message.hpp b/src/can-message.hpp
index f076c5c..6e51d92 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