summaryrefslogtreecommitdiff
path: root/pixelstats/include/pixelstats/BatteryEEPROMReporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'pixelstats/include/pixelstats/BatteryEEPROMReporter.h')
-rw-r--r--pixelstats/include/pixelstats/BatteryEEPROMReporter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/pixelstats/include/pixelstats/BatteryEEPROMReporter.h b/pixelstats/include/pixelstats/BatteryEEPROMReporter.h
index 13a203b7..41577127 100644
--- a/pixelstats/include/pixelstats/BatteryEEPROMReporter.h
+++ b/pixelstats/include/pixelstats/BatteryEEPROMReporter.h
@@ -45,6 +45,9 @@ class BatteryEEPROMReporter {
public:
BatteryEEPROMReporter();
void checkAndReport(const std::shared_ptr<IStats> &stats_client, const std::string &path);
+ void checkAndReportGMSR(const std::shared_ptr<IStats> &stats_client, const std::string &path);
+ void checkAndReportMaxfgHistory(const std::shared_ptr<IStats> &stats_client,
+ const std::string &path);
private:
// Proto messages are 1-indexed and VendorAtom field numbers start at 2, so
@@ -112,7 +115,7 @@ class BatteryEEPROMReporter {
/* The number of elements in struct BatteryHistory for P20 series */
const int kNumBatteryHistoryFields = 19;
- /* P21 history format */
+ /* P21+ history format */
struct BatteryHistoryExtend {
uint16_t tempco;
uint16_t rcomp0;
@@ -135,6 +138,10 @@ class BatteryEEPROMReporter {
bool checkLogEvent(struct BatteryHistory hist);
void reportEvent(const std::shared_ptr<IStats> &stats_client,
const struct BatteryHistory &hist);
+
+ const int kNum77759GMSRFields = 11;
+ const int kNum77779GMSRFields = 5;
+ const int kNum17201HISTFields = 16;
};
} // namespace pixel