comparison src/cs/drivers/drv_app/fchg/fchg_api.h @ 61:75067af48bfd

FCHG updates for Tourmaline UI integration
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 22 Oct 2020 22:30:49 +0000
parents 4e78acac3d88
children 09ea37852fd6
comparison
equal deleted inserted replaced
60:48f280c19e16 61:75067af48bfd
12 enum fchg_user_charge_ctrl { 12 enum fchg_user_charge_ctrl {
13 FCHG_CHARGE_STOP = 0, 13 FCHG_CHARGE_STOP = 0,
14 FCHG_CHARGE_START = 1 14 FCHG_CHARGE_START = 1
15 }; 15 };
16 16
17 #define FCHG_BATT_BARS_CHARGING 0xFF
18
17 struct fchg_user_state { 19 struct fchg_user_state {
18 enum fchg_state chg_state; 20 enum fchg_state chg_state;
19 UINT16 batt_mv; 21 UINT16 batt_mv;
20 T_PWR_PERCENT batt_percent; 22 T_PWR_PERCENT batt_percent;
23 UINT8 batt_bars;
24 UINT16 ichg;
21 }; 25 };
22 26
23 T_RV_RET fchg_user_charge_control(enum fchg_user_charge_ctrl); 27 T_RV_RET fchg_user_charge_control(enum fchg_user_charge_ctrl);
24 T_RV_RET fchg_get_current_state(struct fchg_user_state *); 28 T_RV_RET fchg_get_current_state(struct fchg_user_state *);
29 T_RV_RET fchg_register_event_handler(T_FCHG_EVENT_HANDLER);
25 30
26 #endif /* include guard */ 31 #endif /* include guard */