/****************************************************************************
NAME    
    ChargerIsChargerConnected
    
DESCRIPTION
  	This function is called by applications to check whether the charger has been 
	plugged into the headset
    
RETURNS
    void
*/
bool ChargerIsChargerConnected(void)
{
    bool connected = FALSE;

    if(ChargerStatus() != NO_POWER)
        connected = TRUE;
    
    return connected;
}
示例#2
0
/****************************************************************************
NAME    
    powerManagerIsChargerDisabled
    
DESCRIPTION
    This function is called by applications to check whether the charger has 
    been disabled
    
RETURNS
    bool
*/
bool powerManagerIsChargerDisabled(void)
{
    /* Have to use trap, called before Power lib initialised */
    return (ChargerStatus() == DISABLED_ERROR);
}
示例#3
0
/****************************************************************************
NAME
    powerManagerIsChargerFullCurrent
    
DESCRIPTION
    This function is called by applications to check whether the charger is
    in (potentially) drawing full configured current.
    
RETURNS
    bool
*/
bool powerManagerIsChargerFullCurrent(void)
{
    /* Full current is only drawn in fast charge state */
    return (ChargerStatus() == FAST_CHARGE);
}
示例#4
0
/****************************************************************************
NAME    
    powerManagerIsChargerConnected
    
DESCRIPTION
    This function is called by applications to check whether the charger has 
    been plugged into the device
    
RETURNS
    bool
*/
bool powerManagerIsChargerConnected(void)
{
    /* Have to use trap, called before Power lib initialised */
    return (ChargerStatus() != NO_POWER);
}