diff Small_CPU/Inc/batteryGasGauge.h @ 696:cc542448fb28

Merge
author heinrichsweikamp
date Fri, 19 Aug 2022 11:30:24 +0200
parents c1e203ffb478
children
line wrap: on
line diff
--- a/Small_CPU/Inc/batteryGasGauge.h	Mon Nov 01 12:39:34 2021 +0100
+++ b/Small_CPU/Inc/batteryGasGauge.h	Fri Aug 19 11:30:24 2022 +0200
@@ -31,6 +31,12 @@
 
 #include <stdint.h>
 
+#define BATTERY_DEFAULT_VOLTAGE					(6.0f)
+#define BATTERY_ENDOF_CHARGE_VOLTAGE			(4.05f)
+#define BATTERY_CHARGER_CONNECTED_VOLTAGE		(4.2f)
+
+#define BATTERY_CHARGE_UNKNOWN					(-1.0f)
+
 void init_battery_gas_gauge(void);
 
 float get_voltage(void);
@@ -41,6 +47,10 @@
 void battery_gas_gauge_set(float percentage);
 uint8_t battery_gas_gauge_CheckConfigOK(void);
 
+uint8_t battery_gas_gauge_isChargeValueValid(void);
+void battery_gas_gauge_setChargeValueValid(void);
+
+
 #ifdef __cplusplus
 }
 #endif