package CRSDK;

@SuppressWarnings("unused")
public enum CrBatteryLevel {
    CrBatteryLevel_PreEndBattery	(0x00000001),
    CrBatteryLevel_1_4 (CrBatteryLevel_PreEndBattery.getValue()+1),								// Level 1/4
    CrBatteryLevel_2_4 (CrBatteryLevel_PreEndBattery.getValue()+2),
    CrBatteryLevel_3_4 (CrBatteryLevel_PreEndBattery.getValue()+3),
    CrBatteryLevel_4_4 (CrBatteryLevel_PreEndBattery.getValue()+4),	// Level 4/4
    CrBatteryLevel_1_3 (CrBatteryLevel_PreEndBattery.getValue()+5),								// Level 1/3
    CrBatteryLevel_2_3 (CrBatteryLevel_PreEndBattery.getValue()+6),
    CrBatteryLevel_3_3 (CrBatteryLevel_PreEndBattery.getValue()+7),	// Level 3/3
    CrBatteryLevel_USBPowerSupply (0x00010000),	// USB Power Supply
    CrBatteryLevel_PreEnd_PowerSupply (CrBatteryLevel_USBPowerSupply.getValue()+1),
    CrBatteryLevel_1_4_PowerSupply (CrBatteryLevel_USBPowerSupply.getValue()+2),					// Level 1/4 with USB Power Supply
    CrBatteryLevel_2_4_PowerSupply (CrBatteryLevel_USBPowerSupply.getValue()+3),
    CrBatteryLevel_3_4_PowerSupply (CrBatteryLevel_USBPowerSupply.getValue()+4),
    CrBatteryLevel_4_4_PowerSupply (CrBatteryLevel_USBPowerSupply.getValue()+5),	// Level 4/4 with USB Power Supply
    CrBatteryLevel_Fake (0xFFFFFFFD),				// Fake
    CrBatteryLevel_BatteryNotInstalled (0xFFFFFFFE);

    private final CrInt32u value;
    CrBatteryLevel(int value) {
        this.value = new CrInt32u(value);
    }
    public int getValue() {
        return value.intValue();
    }
}
