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
Libs/PollSwitch/PollSwitch.h@30:91af74a299e1, 2014-11-13 (annotated)
- Committer:
- pspatel321
- Date:
- Thu Nov 13 10:53:10 2014 +0000
- Revision:
- 30:91af74a299e1
- Child:
- 36:0afc0fc8f86b
Parth's edits for the week.; DC-DC completed and fixed, IMD updated, LatchMonitor and Temperature added. Serial dashboard updated. File structure changed Everything tested. Compiles and runs.; Still need to write CAN in/out interface.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pspatel321 | 30:91af74a299e1 | 1 | #ifndef _FILE_POLLSWITCH_H |
| pspatel321 | 30:91af74a299e1 | 2 | #define _FILE_POLLSWITCH_H |
| pspatel321 | 30:91af74a299e1 | 3 | |
| pspatel321 | 30:91af74a299e1 | 4 | #include "LPCDigitalIn.h" |
| pspatel321 | 30:91af74a299e1 | 5 | |
| pspatel321 | 30:91af74a299e1 | 6 | class PollSwitch{ |
| pspatel321 | 30:91af74a299e1 | 7 | public: |
| pspatel321 | 30:91af74a299e1 | 8 | PollSwitch(LPCDigitalIn *sw, int numSwitches); |
| pspatel321 | 30:91af74a299e1 | 9 | |
| pspatel321 | 30:91af74a299e1 | 10 | // Returns new state, 0 means all Closed, 1=first sense line (fuse), 12=last (TSMS) |
| pspatel321 | 30:91af74a299e1 | 11 | char poll(); |
| pspatel321 | 30:91af74a299e1 | 12 | |
| pspatel321 | 30:91af74a299e1 | 13 | private: |
| pspatel321 | 30:91af74a299e1 | 14 | LPCDigitalIn *sw; |
| pspatel321 | 30:91af74a299e1 | 15 | int numSwitches; |
| pspatel321 | 30:91af74a299e1 | 16 | }; |
| pspatel321 | 30:91af74a299e1 | 17 | #endif |
