Pull request for i.a. sensor buffer template

Dependencies:   BLE_API MPU6050 mbed nRF51822

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ReadIntervals.h Source File

ReadIntervals.h

00001 #ifndef READINTERVALS_H
00002 #define READINTERVALS_H
00003 
00004 namespace ReadIntervals {
00005     //                                                  //
00006     //      All time-variables here are in seconds      //
00007     //                                                  //
00008 
00009     const unsigned int TemperatureSensorPeriod = 1;
00010     const unsigned int BatteryMonitorPeriod = 60;
00011 
00012     extern int temperatureSensorPeriod_timeLeft;
00013     extern int batteryMonitorPeriod_timeLeft;
00014 
00015     extern bool temperatureSensorPeriodPassed();
00016     extern bool batteryMonitorPeriodPassed();
00017 
00018     extern void updateTimeLeft(const int & tickerSleptTime);
00019     extern int getTickerSleepTime();
00020 };
00021 
00022 #endif /* READINTERVALS_H */