|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
AXP202 Coulomb counter for battery charge/discharge measurement. More...
Go to the source code of this file.
Classes | |
| class | AXP202Coulomb |
AXP202 Coulomb counter for battery charge/discharge measurement.
Provides 32-bit charge and discharge coulomb counters for accurate battery energy tracking. The formula is: C = 65536 * current_LSB * (charge - discharge) / 3600 / sample_rate where current_LSB = 0.5mA, result in mAh.
Definition in file AXP202Coulomb.hpp.