Exemplo n.º 1
0
/****************************************************************************
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;
}
Exemplo n.º 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);
}
Exemplo n.º 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);
}
Exemplo n.º 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);
}