Numworks Epsilon  1.4.1
Graphing Calculator Operating System
battery.h
Go to the documentation of this file.
1 #ifndef ION_BATTERY_H
2 #define ION_BATTERY_H
3 
4 /*
5  *
6  * RAIN = External input impedance should be <= to
7  * (k-0.5)/(fADC * CADC * ln(2^(n+2)) - RADC
8  *
9  * n = resolution = 12
10  * k = number of sampling periods
11  */
12 
13 
14 namespace Ion {
15 namespace Battery {
16 
17 bool isCharging();
18 
19 enum class Charge {
20  EMPTY,
21  LOW,
23  FULL
24 };
25 Charge level();
26 
27 float voltage();
28 
29 }
30 }
31 
32 #endif
Charge level()
Definition: battery.cpp:20
bool isCharging()
Definition: battery.cpp:16
float voltage()
Definition: battery.cpp:33
Definition: backlight.h:6