diff src/cs/drivers/drv_app/fchg/fchg_struct.h @ 253:769cf6273fe4

FCHG: beginning of battery simulation mode
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 May 2021 11:14:51 +0000
parents 75067af48bfd
children
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_struct.h	Wed May 12 03:18:50 2021 +0000
+++ b/src/cs/drivers/drv_app/fchg/fchg_struct.h	Wed May 12 11:14:51 2021 +0000
@@ -47,6 +47,12 @@
 	T_PWR_THRESHOLDS	percent_thresh[MAX_PERCENT_THRESH];
 };
 
+struct bsim_config {
+	UINT8	init_percent;
+	UINT8	start_enable;
+	UINT8	pad[2];
+};
+
 #define	ICHG_AVG_WINDOW	6
 
 typedef struct {
@@ -60,6 +66,8 @@
 	BOOL			config_present;
 	struct battery_config	batt;
 	UINT16			nb_percent_thresh;
+	struct bsim_config	bsim;
+	BOOL			bsim_mode;
 	/* state */
 	enum fchg_state		state;
 	UINT16			batt_mv;