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

int ddi_bc_hwChargerPowerIsOn ( void   ) 

Report if the charger hardware power is on.

Function

This function reports if the charger hardware power is on.

Return values:
Zero if the charger hardware is not powered. Non-zero otherwise.

Definition at line 216 of file ddi_bc_hw.c.

References ddi_power_GetChargerPowered().

{

      //--------------------------------------------------------------------------
      // Note that the bit we're looking at is named PWD_BATTCHRG. The "PWD"
      // stands for "power down". Thus, when the bit is set, the battery charger
      // hardware is POWERED DOWN.
      //--------------------------------------------------------------------------

      //--------------------------------------------------------------------------
      // Read the register and return the result.
      //--------------------------------------------------------------------------

      //TODO: replace ddi_bc_hwChargerPowerIsOn with function below
      return ddi_power_GetChargerPowered();
}


Generated by  Doxygen 1.6.0   Back to index