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
,
22
SOMEWHERE_INBETWEEN
,
23
FULL
24
};
25
Charge
level
();
26
27
float
voltage
();
28
29
}
30
}
31
32
#endif
Ion::Battery::level
Charge level()
Definition:
battery.cpp:20
Ion::Battery::Charge::FULL
Ion::Battery::Charge
Charge
Definition:
battery.h:19
Ion::Battery::isCharging
bool isCharging()
Definition:
battery.cpp:16
Ion::Battery::Charge::SOMEWHERE_INBETWEEN
Ion::Battery::Charge::LOW
Ion::Battery::Charge::EMPTY
Ion::Battery::voltage
float voltage()
Definition:
battery.cpp:33
Ion
Definition:
backlight.h:6
epsilon
ion
include
ion
battery.h
Generated by
1.8.14