/**************************************************************************** NAME configManagerPower DESCRIPTION Read the Power Manager configuration RETURNS void */ static void configManagerPower( uint16 pConfigID ) { /* 1. Read in the battery monitoring configuration */ ConfigRetrieve(pConfigID , PSKEY_BATTERY_CONFIG, (void*)&((theHeadset.conf->power).battery_config), sizeof(power_config_type) ) ; /* 2. Setup the power manager */ powerManagerConfig(&theHeadset.conf->power); }
/**************************************************************************** NAME configManagerPower DESCRIPTION Read the Power Manager configuration RETURNS void */ static void configManagerPower( void ) { sink_power_config power; /* Read in the battery monitoring configuration */ ConfigRetrieve(theSink.config_id , PSKEY_BATTERY_CONFIG, (void*)&power, sizeof(sink_power_config) ) ; /* Store power settings */ theSink.conf1->power = power.settings; /* Setup the power manager */ powerManagerConfig(&power.config); }