Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: PollSwitch/PollSwitch.h
- 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
