Searched refs:BATTERY_MAX_LEVEL (Results 1 – 7 of 7) sorted by relevance
253 #define BATTERY_MAX_LEVEL 3000 // mV macro257 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL;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()
261 #define BATTERY_MAX_LEVEL 3000 // mV macro265 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL;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()
260 #define BATTERY_MAX_LEVEL 3000 // mV macro276 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL;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()
282 #define BATTERY_MAX_LEVEL 3700 // mV macro286 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL;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()
267 #define BATTERY_MAX_LEVEL 3000 // mV macro283 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL;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()