Home
last modified time | relevance | path

Searched refs:BatteryVoltage (Results 1 – 7 of 7) sorted by relevance

/loramac-node-3.7.0/src/boards/NucleoL073/
Dboard.c276 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
291 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()
/loramac-node-3.7.0/src/boards/NucleoL152/
Dboard.c276 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
291 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()
/loramac-node-3.7.0/src/boards/SKiM881AXL/
Dboard.c257 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
277 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()
/loramac-node-3.7.0/src/boards/NucleoL476/
Dboard.c283 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
298 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()
/loramac-node-3.7.0/src/boards/SKiM980A/
Dboard.c265 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
285 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()
/loramac-node-3.7.0/src/boards/SKiM880B/
Dboard.c265 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
285 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()
/loramac-node-3.7.0/src/boards/NAMote72/
Dboard.c286 static uint16_t BatteryVoltage = BATTERY_MAX_LEVEL; variable
319 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()