Searched refs:BatteryVoltage (Results 1 – 7 of 7) sorted by relevance
276 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable291 return BatteryVoltage; in BoardGetBatteryVoltage()298 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetBatteryLevel()306 if( BatteryVoltage >= BATTERY_MAX_LEVEL ) in BoardGetBatteryLevel()310 else if( ( BatteryVoltage > BATTERY_MIN_LEVEL ) && ( BatteryVoltage < BATTERY_MAX_LEVEL ) ) in BoardGetBatteryLevel()313 …( ( 253 * ( BatteryVoltage - BATTERY_MIN_LEVEL ) ) / ( BATTERY_MAX_LEVEL - BATTERY_MIN_LEVEL ) ) +… in BoardGetBatteryLevel()315 … else if( ( BatteryVoltage > BATTERY_SHUTDOWN_LEVEL ) && ( BatteryVoltage <= BATTERY_MIN_LEVEL ) ) in BoardGetBatteryLevel()331 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetTemperature()336 return ( int16_t ) COMPUTE_TEMPERATURE( tempRaw, BatteryVoltage ); in BoardGetTemperature()
257 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable277 return BatteryVoltage; in BoardGetBatteryVoltage()284 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetBatteryLevel()292 if( BatteryVoltage >= BATTERY_MAX_LEVEL ) in BoardGetBatteryLevel()296 else if( ( BatteryVoltage > BATTERY_MIN_LEVEL ) && ( BatteryVoltage < BATTERY_MAX_LEVEL ) ) in BoardGetBatteryLevel()298 …batteryLevel = ( ( 253 * ( BatteryVoltage - BATTERY_MIN_LEVEL ) ) / ( BATTERY_MAX_LEVEL - BATTERY_… in BoardGetBatteryLevel()300 … else if( ( BatteryVoltage > BATTERY_SHUTDOWN_LEVEL ) && ( BatteryVoltage <= BATTERY_MIN_LEVEL ) ) in BoardGetBatteryLevel()
283 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable298 return BatteryVoltage; in BoardGetBatteryVoltage()305 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetBatteryLevel()313 if( BatteryVoltage >= BATTERY_MAX_LEVEL ) in BoardGetBatteryLevel()317 else if( ( BatteryVoltage > BATTERY_MIN_LEVEL ) && ( BatteryVoltage < BATTERY_MAX_LEVEL ) ) in BoardGetBatteryLevel()320 …( ( 253 * ( BatteryVoltage - BATTERY_MIN_LEVEL ) ) / ( BATTERY_MAX_LEVEL - BATTERY_MIN_LEVEL ) ) +… in BoardGetBatteryLevel()322 … else if( ( BatteryVoltage > BATTERY_SHUTDOWN_LEVEL ) && ( BatteryVoltage <= BATTERY_MIN_LEVEL ) ) in BoardGetBatteryLevel()338 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetTemperature()343 return ( int16_t ) COMPUTE_TEMPERATURE( tempRaw, BatteryVoltage ); in BoardGetTemperature()
265 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable285 return BatteryVoltage; in BoardGetBatteryVoltage()292 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetBatteryLevel()300 if( BatteryVoltage >= BATTERY_MAX_LEVEL ) in BoardGetBatteryLevel()304 else if( ( BatteryVoltage > BATTERY_MIN_LEVEL ) && ( BatteryVoltage < BATTERY_MAX_LEVEL ) ) in BoardGetBatteryLevel()306 …batteryLevel = ( ( 253 * ( BatteryVoltage - BATTERY_MIN_LEVEL ) ) / ( BATTERY_MAX_LEVEL - BATTERY_… in BoardGetBatteryLevel()308 … else if( ( BatteryVoltage > BATTERY_SHUTDOWN_LEVEL ) && ( BatteryVoltage <= BATTERY_MIN_LEVEL ) ) in BoardGetBatteryLevel()
286 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable319 return BatteryVoltage; in BoardGetBatteryVoltage()326 BatteryVoltage = BoardBatteryMeasureVoltage( ); in BoardGetBatteryLevel()334 if( BatteryVoltage >= BATTERY_MAX_LEVEL ) in BoardGetBatteryLevel()338 else if( ( BatteryVoltage > BATTERY_MIN_LEVEL ) && ( BatteryVoltage < BATTERY_MAX_LEVEL ) ) in BoardGetBatteryLevel()340 …batteryLevel = ( ( 253 * ( BatteryVoltage - BATTERY_MIN_LEVEL ) ) / ( BATTERY_MAX_LEVEL - BATTERY_… in BoardGetBatteryLevel()342 … else if( ( BatteryVoltage > BATTERY_SHUTDOWN_LEVEL ) && ( BatteryVoltage <= BATTERY_MIN_LEVEL ) ) in BoardGetBatteryLevel()