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

Method GetVapsData

lib/utility/AXP192.cpp:275–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275uint16_t AXP192::GetVapsData(void) {
276 uint16_t vaps = 0;
277 uint8_t buf[2];
278 ReadBuff(0x7e, 2, buf);
279 vaps = ((buf[0] << 4) + buf[1]);
280 return vaps;
281}
282
283void AXP192::SetSleep(void) {
284 Write1Byte(0x31, Read8bit(0x31) | (1 << 3));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected