NetBurner 3.5.8
PDF Version
Toggle main menu visibility
TempMonitor.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef TEMPMONITOR_H
6
#define TEMPMONITOR_H
7
8
#include <basictypes.h>
9
#include "GPSTime.h"
10
11
class
GPSChip;
12
13
class
TempMonitor
14
{
15
private
:
16
float
m_highWaterMarkC;
17
GPSTime m_highWaterMarkTime;
18
bool
m_initialized;
19
GPSChip *m_gpsChip;
20
21
float
celsiusToFahrenheit(
float
celsius)
const
;
22
23
public
:
24
TempMonitor(GPSChip &gpsChip);
25
~TempMonitor();
26
27
bool
init
();
28
void
deinit();
29
30
float
getCurrentTempC()
const
;
31
float
getCurrentTempF()
const
;
32
33
float
getHighWaterMarkC()
const
{
return
m_highWaterMarkC; }
34
float
getHighWaterMarkF()
const
{
return
celsiusToFahrenheit(m_highWaterMarkC); }
35
const
GPSTime &getHighWaterMarkTime()
const
{
return
m_highWaterMarkTime; }
36
37
void
updateHighWaterMark();
38
void
resetHighWaterMark();
39
};
40
41
#endif
// TEMPMONITOR_H
init
void init()
System initialization. Ideally called at the beginning of all applications, since the easiest Recover...
examples
PlatformSpecific
NTP1061
src
class
TempMonitor.h
Generated by
1.18.0