MCPcopy Create free account
hub / github.com/BruceDevices/firmware / GetBatPower

Method GetBatPower

lib/utility/AXP192.cpp:387–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387float AXP192::GetBatPower() {
388 float VoltageLSB = 1.1;
389 float CurrentLCS = 0.5;
390 uint32_t ReData = Read24bit(0x70);
391 return VoltageLSB * CurrentLCS * ReData / 1000.0;
392}
393
394float AXP192::GetBatChargeCurrent() {
395 float ADCLSB = 0.5;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected