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
PollSwitch/PollSwitch.h@24:f58a3c0071c3, 2014-11-07 (annotated)
- Committer:
- martydd3
- Date:
- Fri Nov 07 21:26:46 2014 +0000
- Revision:
- 24:f58a3c0071c3
- Parent:
- 17:c9ce210f6654
finally compiles
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| martydd3 | 7:5f6e31faa08e | 1 | #ifndef _FILE_POLLSWITCH_H |
| martydd3 | 7:5f6e31faa08e | 2 | #define _FILE_POLLSWITCH_H |
| martydd3 | 7:5f6e31faa08e | 3 | |
| martydd3 | 6:6a04210a3f4f | 4 | #include "LPCDigitalIn.h" |
| martydd3 | 0:e516fcccccda | 5 | |
| martydd3 | 7:5f6e31faa08e | 6 | class PollSwitch{ |
| martydd3 | 7:5f6e31faa08e | 7 | public: |
| pspatel321 | 17:c9ce210f6654 | 8 | PollSwitch(); |
| pspatel321 | 17:c9ce210f6654 | 9 | |
| pspatel321 | 17:c9ce210f6654 | 10 | // Returns new state, updates last known |
| pspatel321 | 17:c9ce210f6654 | 11 | uint16_t poll(); |
| pspatel321 | 17:c9ce210f6654 | 12 | |
| pspatel321 | 17:c9ce210f6654 | 13 | // Stores the last known state |
| pspatel321 | 17:c9ce210f6654 | 14 | uint16_t switchState; |
| martydd3 | 7:5f6e31faa08e | 15 | }; |
| martydd3 | 7:5f6e31faa08e | 16 | #endif |
