Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
17:c9ce210f6654
Parent:
12:e0adb697fcdb
--- a/PollSwitch/PollSwitch.h	Fri Oct 24 22:38:20 2014 +0000
+++ b/PollSwitch/PollSwitch.h	Sat Oct 25 03:28:55 2014 +0000
@@ -1,16 +1,16 @@
 #ifndef _FILE_POLLSWITCH_H
 #define _FILE_POLLSWITCH_H
 
-#include "LPCDigitalOut.h"
 #include "LPCDigitalIn.h"
-#include "CANBuffer.h"
-#include "rtos.h"
-
-const int TX_POLL_ID = ((4 << 8) | 0x02);
 
 class PollSwitch{
     public:
-        PollSwitch(CANBuffer *can);
-        void start_update();  
+        PollSwitch();
+        
+        // Returns new state, updates last known
+        uint16_t poll();
+        
+        // Stores the last known state
+        uint16_t switchState;
 };
 #endif
\ No newline at end of file