Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lampda::component::charger::policy::ChargeLimiter Class Reference

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.
 

Detailed Description

Track the charge stop state (battery full, over voltage)

Member Function Documentation

◆ update()

bool lampda::component::charger::policy::ChargeLimiter::update ( const uint32_t  time_ms,
const Inputs &  in 
)
inline

Update the state with new measurements.

Returns
true if the charge is allowed

The documentation for this class was generated from the following file: