Package com.playingwithfusion
Enum Class BattFuelGauge.BatteryChargeState
java.lang.Object
java.lang.Enum<BattFuelGauge.BatteryChargeState>
com.playingwithfusion.BattFuelGauge.BatteryChargeState
- All Implemented Interfaces:
Serializable,Comparable<BattFuelGauge.BatteryChargeState>,Constable
- Enclosing class:
- BattFuelGauge
Battery charge state enumeration
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant current chargingConstant voltage chargingBattery finished charging and has started dischargingCharging completeUnknown charge/discharge stateOpen circuit (no-load connected to battery).Trickle (top-off) charging -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BattFuelGauge.BatteryChargeState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Init
Unknown charge/discharge state -
Discharge
Battery finished charging and has started discharging -
ConstICharge
Constant current charging -
ConstVCharge
Constant voltage charging -
TrickleCharge
Trickle (top-off) charging -
Idle
Charging complete -
MeasureOCV
Open circuit (no-load connected to battery). State of charge based on open circuit voltage.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-