SleepLevel Enumeration

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

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

public enum SleepLevel

 Member nameDescription
AwakeThe 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.
DeepSleepThe 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.
OffThe entire device's power is off. The entire system is shut down.
SelectiveOffPortions 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.
SleepThe 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 Thread.Sleep.

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, where as Sleep may turn off the display, and DeepSleep may go into a hibernation state.

Available in the .NET Micro Framework versions 4.0 and 4.1.

Community Additions