A compilation of some hardware sensors and their shared programming interfaces.
SleepableSensor.h
- Committer:
- mgottscho
- Date:
- 2014-03-19
- Revision:
- 1:15396cab58d1
- Parent:
- 0:8d34cc2ff388
File content as of revision 1:15396cab58d1:
/* SleepableSensor.h * Tested with mbed board: FRDM-KL46Z * Author: Mark Gottscho * mgottscho@ucla.edu */ #ifndef SLEEPABLE_SENSOR_H #define SLEEPABLE_SENSOR_H class SleepableSensor { public: SleepableSensor(); ~SleepableSensor(); virtual void sleep() = 0; virtual void wake() = 0; bool isAsleep(); private: bool __sleeping; }; #endif