changeset 324:0937521ec2f4

compile-fc-chg: changes for FCHG v2
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 29 Dec 2017 20:38:39 +0000
parents 886f65760d09
children 545e1718f5fb
files ffstools/newcomp/compile-fc-chg.c
diffstat 1 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ffstools/newcomp/compile-fc-chg.c	Mon Dec 18 21:00:46 2017 +0000
+++ b/ffstools/newcomp/compile-fc-chg.c	Fri Dec 29 20:38:39 2017 +0000
@@ -25,15 +25,25 @@
 	unsigned	set_value;
 	int		is_set;
 } settings[] = {
-	{"start-delay",       0, 0, 0, 0,      0, 0},
-	{"start-threshold",   1, 1, 1, 0,      0, 0},
-	{"restart-threshold", 0, 1, 1, 0,      0, 0},
-	{"charge-to-voltage", 0, 0, 1, 0,      0, 0},
-	{"overvoltage",       0, 0, 0, 0xFFFF, 0, 0},
-	{"ci-current",        0, 0, 1, 0,      0, 0},
-	{"end-current",       0, 0, 1, 0,      0, 0},
-	{"i2v-offset",        0, 0, 0, 0,      0, 0},
-	{0,                   0, 0, 0, 0,      0, 0}
+	{"start-delay",               0, 0, 0, 0,      0, 0},
+	{"start-threshold",           1, 1, 1, 0,      0, 0},
+	{"restart-threshold",         0, 1, 1, 0,      0, 0},
+	{"ci2cv-threshold",           0, 0, 1, 0,      0, 0},
+	{"cv-initial-setpoint",       0, 0, 1, 0,      0, 0},
+	{"cv-ctrl-loop-high",         0, 0, 1, 0,      0, 0},
+	{"cv-ctrl-loop-low",          0, 0, 1, 0,      0, 0},
+	{"cv-dac-max-incr",           0, 0, 1, 0,      0, 0},
+	{"cv-dac-max-decr",           0, 0, 1, 0,      0, 0},
+	{"cv-ctrl-loop-sample-count", 0, 0, 1, 0,      0, 0},
+	{"overvoltage",               0, 0, 0, 0xFFFF, 0, 0},
+	{"ci-current",                0, 0, 1, 0,      0, 0},
+	{"end-current",               0, 0, 1, 0,      0, 0},
+	{"ichg-max-spike",            0, 0, 0, 0x400,  0, 0},
+	{"ichg-low-samples-needed",   0, 0, 1, 0,      0, 0},
+	{"charging-time-limit",       0, 0, 0, 0xFFFF, 0, 0},
+	{"restart-delay",             0, 0, 0, 0,      0, 0},
+	{"i2v-offset",                0, 0, 0, 0,      0, 0},
+	{0,                           0, 0, 0, 0,      0, 0}
 };
 
 static void