summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorChristian Vogel <chris@ubuntu.dillberg.com>2012-02-25 12:49:32 +0100
committerHarald Welte <laforge@gnumonks.org>2012-04-28 09:38:46 +0200
commit5b87e3e4bdf7878a95342264153b4bdd907d9632 (patch)
tree6aa816c38faf305fb940405919223f58580392a3 /src/target/firmware/include
parent071747aea88d7dbdcb6f877bb1a94782afd18555 (diff)
Further work on C123 charging.
Diffstat (limited to 'src/target/firmware/include')
-rwxr-xr-xsrc/target/firmware/include/battery/battery.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/firmware/include/battery/battery.h b/src/target/firmware/include/battery/battery.h
index d80f0742..4270d7c6 100755
--- a/src/target/firmware/include/battery/battery.h
+++ b/src/target/firmware/include/battery/battery.h
@@ -16,22 +16,22 @@
*/
-enum osmocom_battery_flags {
+enum battery_flags {
BATTERY_CHG_CONNECTED = 1 << 0, /* AC adapter is connected */
BATTERY_CHG_ENABLED = 1 << 1, /* if needed charger could charge */
BATTERY_CHARGING = 1 << 2, /* charger is actively charging */
BATTERY_FAILURE = 1 << 3, /* problem exists preventing charge */
};
-struct osmocom_battery_info {
- enum osmocom_battery_flags flags;
+struct battery_info {
+ enum battery_flags flags;
int charger_volt_mV; /* charger connection voltage */
int bat_volt_mV; /* battery terminal voltage */
int bat_chg_curr_mA; /* battery charging current */
int battery_percent; /* 0(empty) .. 100(full) */
};
-extern struct osmocom_battery_info
-osmocom_battery_info;
+extern struct battery_info
+battery_info;
#endif