2 #ifndef BATTERY_MONITOR_H
3 #define BATTERY_MONITOR_H
5 #include <ti/drivers/I2C.h>
7 #define Board_AD7993_ADDR (0x21)
8 #define AD7998_I2C_ADDRESS (0x21)
9 #define AD4151_I2C_ADDRESS (0x68)
47 static void Initialize (
const I2C_Handle offboardI2cHandle);
48 static enum BatteryState VoltageLogic(
float temperatureDegreesC);
49 static void InitADC (
void);
50 static void ConvertAllAdcChannels (
void);
51 static int TemperatureAdjustedBatteryPercentage (
float batteryVoltage,
float temperatureDegreesC);
52 static float Get30PercentVoltage (
float temperatureDegreesC);
53 static double FindLowestCell (
int batteryIndex);
55 static BatteryLevel sBatteryLevel;
56 static unsigned sBatteryPercentage;
57 static BatteryState sBatteryState;
58 static float sVoltageForPercentageCalc;
60 #if (GEO_7998_BATTERY_MONITOR == GEO_TRUE)
Definition: BatteryMonitor.hpp:15
Definition: BatteryMonitor.hpp:28
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47