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: Libs/PollSwitch/PollSwitch.h
- 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
