This class provides APIs to all of the registers of the TI BQ27441 battery gauge, as used on the u-blox C030 board. The caller should instantiate an I2C interface and pass this to init(), which will initialise the chip and place it into its lowest power state. When battery gauging is enabled, the getRemainingCapacity()/getRemainingPercentage() API calls may be used; otherwise the chip will be maintained in its lowest power state until a voltage/current/temperature reading is requested.

Dependents:   example-battery-gauge-bq27441

Revision:
3:ebd56471d57c
Parent:
2:93310a83401a
Child:
5:63b325f2c21a
--- a/bq27441.cpp	Tue Apr 11 09:57:10 2017 +0000
+++ b/bq27441.cpp	Tue Jun 06 15:58:21 2017 +0100
@@ -730,6 +730,12 @@
     return success;
 }
 
+// Determine whether battery gauging is enabled.
+bool BatteryGaugeBq27441::isGaugeEnabled(void)
+{
+    return gGaugeOn;
+}
+
 // Check whether a battery has been detected or not.
 bool BatteryGaugeBq27441::isBatteryDetected (void)
 {