Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
30:91af74a299e1
Child:
36:0afc0fc8f86b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Libs/PollSwitch/PollSwitch.h	Thu Nov 13 10:53:10 2014 +0000
@@ -0,0 +1,17 @@
+#ifndef _FILE_POLLSWITCH_H
+#define _FILE_POLLSWITCH_H
+
+#include "LPCDigitalIn.h"
+
+class PollSwitch{
+    public:
+        PollSwitch(LPCDigitalIn *sw, int numSwitches);
+        
+        // Returns new state, 0 means all Closed, 1=first sense line (fuse), 12=last (TSMS)
+        char poll();
+    
+    private:
+        LPCDigitalIn *sw;
+        int numSwitches;
+};
+#endif
\ No newline at end of file