Tezzeret  1
Tezzeret
/home/kddev/dev/TivaWorkspace/TezzeretApps/GmSysMgmt.hpp
1 //#ifdef GOOFY
2 /*
3  *
4  * Created on: Aug 8, 2018
5  * Author: eb
6  */
7 
8 #ifndef GEO_MFAM_SYS_MGMT_HPP_
9 #define GEO_MFAM_SYS_MGMT_HPP_
10 
11 #include <stdio.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <stdbool.h>
15 #include <xdc/runtime/Types.h>
16 #include "BatteryMonitor.hpp"
17 
18 
19 // Possible return values for GetBatteryStatus()
20 /*
21 #define GeoBatteryLevel_Unknown blUnknown
22 #define GeoBatteryLevel_Normal blNormal
23 #define GeoBatteryLevel_Low blLow
24 #define GeoBatteryLevel_DownloadOnly blVeryLow
25 #define GeoBatteryLevel_Critical blCritical
26 */
27 
28 
29 namespace Geometrics
30 {
31 
32  class GeoSysMgmt
33  {
34  public:
35  GeoSysMgmt ();
36  ~GeoSysMgmt ();
37 
38  static int Initialize (const I2C_Handle offboardI2cHandle);
39 
40  static GeoBatteryMonitor::BatteryLevel GetBatteryStatus ();
41  static UInt32 GetBatteryPercentage ();
42 
43  static void PowerButtonPressed ();
44 
45  static bool GetGPSOnOffStatus ();
46  static bool GetMFAMOnOffStatus ();
47  static bool GetWifiOnOffStatus ();
48  static bool GetUSBOnOffStatus ();
49  static bool GetMachineUniqueId (UInt32 *pBuffer);
50  static bool GetMachineCPUType (UInt32 *pBuffer);
51 
52 
53  protected:
54 
55  public:
56  #if GEO_TMP75_TEMP_SENSOR == GEO_TRUE
57  static float sSystemTemperature;
58  #endif
59 
60 
61 
62 
63  };
64 }
65 
66 
67 
68 #endif
69 //#endif
Definition: GmSysMgmt.hpp:33
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47