pub const fn classify(
battery_mv: u16,
external_power: bool,
charging: bool,
thresholds: BatteryThresholds,
) -> BatteryStateExpand description
Classify external power first so battery-only warnings and lockouts can never leak into Charging or Charged from the user’s perspective.