Library to interface to the TI BQ27441, a fuel gauge monitor
Fork of battery-gauge-bq27441 by
Diff: battery_gauge_bq27441.h
- Revision:
- 5:63b325f2c21a
- Parent:
- 3:ebd56471d57c
- Child:
- 6:998cc334f8f2
diff -r e6208506ebc7 -r 63b325f2c21a battery_gauge_bq27441.h --- a/battery_gauge_bq27441.h Wed Jun 07 10:32:54 2017 +0000 +++ b/battery_gauge_bq27441.h Wed Jun 14 17:11:40 2017 +0100 @@ -74,7 +74,22 @@ */ bool isGaugeEnabled(void); + /** Enable the battery detect pin of the chip. + * Default is enabled. + * @return true if successful, otherwise false. + */ + bool enableBatteryDetect (); + + /** Disable the battery detect pin of the chip and + * assume that the battery is ALWAYS connected. + * Default is that battery detect is enabled. + * @return true if successful, otherwise false. + */ + bool disableBatteryDetect (void); + /** Determine whether a battery has been detected or not. + * If battery detection is disabled, this function will always + * return true. * @return true if a battery has been detected, otherwise false. */ bool isBatteryDetected (void);