A compilation of some hardware sensors and their shared programming interfaces.

SleepableSensor.cpp

Committer:
mgottscho
Date:
2014-03-19
Revision:
1:15396cab58d1
Parent:
0:8d34cc2ff388

File content as of revision 1:15396cab58d1:

/* SleepableSensor.cpp
 * Tested with mbed board: FRDM-KL46Z
 * Author: Mark Gottscho
 * mgottscho@ucla.edu
 */
 
#include "SleepableSensor.h"

SleepableSensor::SleepableSensor() :
                        __sleeping(false)
                        {
}

SleepableSensor::~SleepableSensor() { }

bool SleepableSensor::isAsleep() {
    return __sleeping;   
}