/**************************************************************************** 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; }
/**************************************************************************** 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); }
/**************************************************************************** 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); }
/**************************************************************************** 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); }