FreeCalypso > hg > fc-magnetite
view src/cs/drivers/drv_app/fchg/fchg_api.c @ 342:a9743c1dbe58
create_RVtasks.c: start FCHG SWE when it is included
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 Dec 2017 19:02:09 +0000 |
parents | be011556e71f |
children | 3a7810ca74e2 |
line wrap: on
line source
/* * The implementation of our external API functions lives here. */ #include "fchg/fchg_api.h" #include "fchg/fchg_env.h" #include "fchg/fchg_messages.h" #include "rv/rv_general.h" #include "rvf/rvf_api.h" #include "rvm/rvm_use_id_list.h" T_RV_RET fchg_get_current_state(struct fchg_user_state *rstruct) { rstruct->chg_state = pwr_ctrl->state; rstruct->batt_mv = pwr_ctrl->batt_mv; rstruct->batt_percent = pwr_ctrl->batt_thresholds[pwr_ctrl->curr_disch_thresh].remain_capa; return RV_OK; }