tbf
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 1 Mar 2017 07:41:29 +0000 (08:41 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 1 Mar 2017 07:41:29 +0000 (08:41 +0100)
Change-Id: I30e16cd45d613db1aaf7d1064bfaf5c6013d991a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/can-message.hpp
src/can-signals.hpp

index f076c5c..6e51d92 100644 (file)
@@ -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
index 92dfe72..a6248f2 100644 (file)
@@ -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.