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

Method GetIchargeData

lib/utility/AXP192.cpp:243–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243uint16_t AXP192::GetIchargeData(void) {
244 uint16_t icharge = 0;
245 uint8_t buf[2];
246 ReadBuff(0x7A, 2, buf);
247 icharge = (buf[0] << 5) + buf[1];
248 return icharge;
249}
250
251uint16_t AXP192::GetIdischargeData(void) {
252 uint16_t idischarge = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected