This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.

Dependencies:   mbed

Fork of programmingtest by RespiratorySensor Team

Revision:
0:5ab9f1abaf4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Controler.h	Sun Feb 28 15:54:13 2016 +0000
@@ -0,0 +1,16 @@
+#ifndef CONTROLER_H
+#define CONTROLER_H
+
+#include "mbed.h"
+#include "Canal.h"
+#include <vector>
+
+std::vector<uint32_t> checkActivity(Canal newChannel[]);
+    /**
+    *   check if the chanels are active and then returns an array with all the active channel in increasing order
+    *   the first is the size, or, how many channels are active
+    **/
+    
+
+
+#endif
\ No newline at end of file