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

Method GetBatChargeCurrent

lib/utility/AXP192.cpp:394–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394float AXP192::GetBatChargeCurrent() {
395 float ADCLSB = 0.5;
396 uint16_t ReData = Read12Bit(0x7A);
397 return ReData * ADCLSB;
398}
399float AXP192::GetAPSVoltage() {
400 float ADCLSB = 1.4 / 1000.0;
401 uint16_t ReData = Read12Bit(0x7E);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected