Home
last modified time | relevance | path

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

/loramac-node-latest/src/boards/SKiM881AXL/
Dboard.c253 #define BATTERY_MAX_LEVEL 3000 // mV macro
257 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()
/loramac-node-latest/src/boards/SKiM980A/
Dboard.c261 #define BATTERY_MAX_LEVEL 3000 // mV macro
265 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()
/loramac-node-latest/src/boards/NucleoL073/
Dboard.c260 #define BATTERY_MAX_LEVEL 3000 // mV macro
276 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()
/loramac-node-latest/src/boards/NucleoL152/
Dboard.c260 #define BATTERY_MAX_LEVEL 3000 // mV macro
276 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()
/loramac-node-latest/src/boards/SKiM880B/
Dboard.c261 #define BATTERY_MAX_LEVEL 3000 // mV macro
265 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()
/loramac-node-latest/src/boards/NAMote72/
Dboard.c282 #define BATTERY_MAX_LEVEL 3700 // mV macro
286 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()
/loramac-node-latest/src/boards/NucleoL476/
Dboard.c267 #define BATTERY_MAX_LEVEL 3000 // mV macro
283 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()