SleepLevel Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines the default named sleep levels for the .NET Micro Framework.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Enumeration SleepLevel
public enum SleepLevel
public enum class SleepLevel
type SleepLevel
public enum SleepLevel

Members

Member name Description
Awake The device is awake, not sleeping. The normal state of the .NET Micro Framework. This includes sleeping the processor core when there are no ready managed threads.
SelectiveOff Portions of the device are powered off, such as peripherals. The sleep level in which only some of the peripherals are turned off for the sleep duration.
Sleep The device is in the regular sleep state. The sleep level in which most non-essential peripherals are turned off, but the memory of the system is preserved and timers work as programmed. Equivalent to Sleep.
DeepSleep The device is in deep sleep. The state in which most peripherals are turned off, the memory of the system is maintained, but timers will not be executed. Equivalent to the earlier version's Hibernate method.
Off The entire device's power is off. The entire system is shut down.

Remarks

The behavior for each of these states is determined by the hardware vendor. The general guideline is that each increased value indicates a deeper sleep. Therefore, SelectiveOff might simply dim the display backlight, whereas Sleep may turn off the display, and DeepSleep may go into a hibernation state.

See Also

Reference

Microsoft.SPOT.Hardware Namespace