Home
last modified time | relevance | path

Searched refs:batt_mV (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/boards/nordic/battery/src/
Dmain.c65 int batt_mV = battery_sample(); in main() local
67 if (batt_mV < 0) { in main()
69 batt_mV); in main()
73 unsigned int batt_pptt = battery_level_pptt(batt_mV, levels); in main()
76 batt_mV, batt_pptt); in main()
Dbattery.c205 unsigned int battery_level_pptt(unsigned int batt_mV, in battery_level_pptt() argument
210 if (batt_mV >= pb->lvl_mV) { in battery_level_pptt()
216 && (batt_mV < pb->lvl_mV)) { in battery_level_pptt()
219 if (batt_mV < pb->lvl_mV) { in battery_level_pptt()
229 * (batt_mV - pb->lvl_mV) in battery_level_pptt()
Dbattery.h50 unsigned int battery_level_pptt(unsigned int batt_mV,