Function ctru_sys::APT_SleepSystem

source ·
pub unsafe extern "C" fn APT_SleepSystem(
    wakeEvents: *const PtmWakeEvents
) -> Result
Expand description

Requests to enter sleep mode, and later sets wake events if allowed to.

§Arguments

  • wakeEvents - The wake events. Limited to “shell” (bit 1) for the PDN wake events part and “shell opened”, “shell closed” and “HOME button pressed” for the MCU interrupts part.