Class that makes for easy scheduling of regular tasks in a soft real-time context.
BooleanTicker.h
- Committer:
- symbiotic
- Date:
- 2014-05-26
- Revision:
- 0:9015010b5125
File content as of revision 0:9015010b5125:
/** Generic Ticker implementation that sets a boolean flag at a regular interval 9/12/13 Andrew H. Fagg Original */ #ifndef BOOLEAN_TICKER_H #define BOOLEAN_TICKER_H #include "mbed.h" class BooleanTicker { public: BooleanTicker(float interval); ~BooleanTicker(); void clear(); void set(); bool getValue(); private: void BooleanTickerCallback(); Ticker ticker; bool value; }; #endif