MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / SetLDO2

Method SetLDO2

lib/utility/AXP192.cpp:419–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419void AXP192::SetLDO2(bool State) {
420 uint8_t buf = Read8bit(0x12);
421 if (State == true)
422 buf = (1 << 2) | buf;
423 else
424 buf = ~(1 << 2) & buf;
425 Write1Byte(0x12, buf);
426}
427
428// Cut all power, except for LDO1 (RTC)
429void AXP192::PowerOff() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected