classify

Function classify 

Source
pub const fn classify(
    battery_mv: u16,
    external_power: bool,
    charging: bool,
    thresholds: BatteryThresholds,
) -> BatteryState
Expand description

Classify external power first so battery-only warnings and lockouts can never leak into Charging or Charged from the user’s perspective.