|
Lamp-Da 0.1
A compact lantern project
|
Track the charge stop state (battery full, over voltage) More...
#include <charge_policy.h>
Public Member Functions | |
| bool | update (const uint32_t time_ms, const Inputs &in) |
| Update the state with new measurements. | |
| void | clear_full () |
| Forget the battery full state (power source change). The over voltage state is kept, for safety. | |
| bool | is_full () const |
| True if the battery charge is done. | |
| bool | is_over_voltage_stopped () const |
| True if the charge is stopped by an over voltage. | |
Track the charge stop state (battery full, over voltage)
|
inline |
Update the state with new measurements.