FreeCalypso > hg > fc-tourmaline
diff 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 |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_api.h Wed Oct 21 03:31:04 2020 +0000 +++ b/src/cs/drivers/drv_app/fchg/fchg_api.h Thu Oct 22 22:30:49 2020 +0000 @@ -14,13 +14,18 @@ FCHG_CHARGE_START = 1 }; +#define FCHG_BATT_BARS_CHARGING 0xFF + struct fchg_user_state { enum fchg_state chg_state; UINT16 batt_mv; T_PWR_PERCENT batt_percent; + UINT8 batt_bars; + UINT16 ichg; }; T_RV_RET fchg_user_charge_control(enum fchg_user_charge_ctrl); T_RV_RET fchg_get_current_state(struct fchg_user_state *); +T_RV_RET fchg_register_event_handler(T_FCHG_EVENT_HANDLER); #endif /* include guard */