public class

SmartChargeManager

extends Object
java.lang.Object
   ↳ com.datalogic.device.power.SmartChargeManager

Class Overview

This class allows to configure and activate the smart charge feature.

Summary

Nested Classes
enum SmartChargeManager.State The SmartChargeState enumeration is the class that lists the possible states of the SmartCharge algorithm state machine. 
Public Constructors
SmartChargeManager()
This is the constructor of SmartChargeManager.
Public Methods
void forceManualCharge()
This method allows to initiate a forced manual charge, bringing the battery to a full state (100%) and temporarily bypassing any active smart charge algorithm operations.
int getDischargeDelay()
This method retrieves the currently configured discharge delay.
boolean getEnabled()
This method allows to know the state of the smart charge algorithm.
SmartChargeManager.State getState()
This method allows to know the current state of the smart charge state machine.
void setDischargeDelay(int value)
This method allows to set the discharge delay.
void setEnabled(boolean enabled)
This method allows to set the state of the smart charge algorithm.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SmartChargeManager ()

Added in revision 44

This is the constructor of SmartChargeManager.

Throws
DeviceException in case of error.

Public Methods

public void forceManualCharge ()

Added in revision 44

This method allows to initiate a forced manual charge, bringing the battery to a full state (100%) and temporarily bypassing any active smart charge algorithm operations.

public int getDischargeDelay ()

Added in revision 44

This method retrieves the currently configured discharge delay. This setting determines the maximum time the device will remain at full (100%) charge before it starts discharging to a safe state of charge (SoC).

Returns
  • an int indicating the discharge delay in seconds.

public boolean getEnabled ()

Added in revision 44

This method allows to know the state of the smart charge algorithm.

Returns
  • The boolean true if the smart charge algorithm is enabled, false otherwise.

public SmartChargeManager.State getState ()

Added in revision 44

This method allows to know the current state of the smart charge state machine.

Returns
  • The SmartChargeState value indicating the current state, or null if the state is invalid.

public void setDischargeDelay (int value)

Added in revision 44

This method allows to set the discharge delay. This setting determines the maximum time the device will remain at full (100%) charge before it starts discharging to a safe state of charge (SoC).

Parameters
value A int value indicating the discharge delay in seconds.

public void setEnabled (boolean enabled)

Added in revision 44

This method allows to set the state of the smart charge algorithm.

Parameters
enabled The boolean value indicating if the smart charge should be enabled or disabled.