Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static void TransitionToWaitingToCharge ( void   )  [static]

Transition to the Waiting to Charge state.

Function

This function implements the transition to the Waiting to Charge state.

Definition at line 99 of file ddi_bc_sm.c.

References ddi_bc_RampReset(), DDI_BC_STATE_WAITING_TO_CHARGE, and g_ddi_bc_State.

Referenced by ddi_bc_Charging(), ddi_bc_Conditioning(), and ddi_bc_ToppingOff().

{

      //--------------------------------------------------------------------------
      // Reset the state timer.
      //--------------------------------------------------------------------------

      g_ddi_bc_u32StateTimer = 0;

      //--------------------------------------------------------------------------
      // Reset the current ramp.
      //--------------------------------------------------------------------------

      ddi_bc_RampReset();

      //--------------------------------------------------------------------------
      // Move to the Waiting to Charge state.
      //--------------------------------------------------------------------------

      g_ddi_bc_State = DDI_BC_STATE_WAITING_TO_CHARGE;

#ifdef CONFIG_POWER_SUPPLY_DEBUG
      printk("Battery charger: now waiting to charge\n");
#endif

}


Generated by  Doxygen 1.6.0   Back to index