comparison src/cs/drivers/drv_app/fchg/fchg_struct.h @ 333:8a90038c0173

FCHG: store discharge state as threshold index rather than percentage
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Dec 2017 18:35:16 +0000
parents 8166b0afcf8c
children ce6d71349af0
comparison
equal deleted inserted replaced
332:70e3acc5d4c8 333:8a90038c0173
40 T_PWR_THRESHOLDS batt_thresholds[MAX_THRESHOLDS]; 40 T_PWR_THRESHOLDS batt_thresholds[MAX_THRESHOLDS];
41 UINT16 nb_thresholds; 41 UINT16 nb_thresholds;
42 /* state */ 42 /* state */
43 enum fchg_state state; 43 enum fchg_state state;
44 UINT16 batt_mv; 44 UINT16 batt_mv;
45 T_PWR_PERCENT curr_percent; 45 UINT16 curr_disch_thresh;
46 /* valid only during a charging cycle */ 46 /* valid only during a charging cycle */
47 UINT16 i2v_offset; 47 UINT16 i2v_offset;
48 } T_PWR_CTRL_BLOCK; 48 } T_PWR_CTRL_BLOCK;
49 49
50 #endif /* include guard */ 50 #endif /* include guard */