DEVICE_POWER_STATE enumeration

[Applies to UMDF 1.x only]

The DEVICE_POWER_STATE enumeration identifies the device power states that a device can enter.

Syntax


typedef enum _DEVICE_POWER_STATE { 
  PowerDeviceUnspecified  = 0,
  PowerDeviceD0           = ( PowerDeviceUnspecified + 1 ),
  PowerDeviceD1           = ( PowerDeviceD0 + 1 ),
  PowerDeviceD2           = ( PowerDeviceD1 + 1 ),
  PowerDeviceD3           = ( PowerDeviceD2 + 1 ),
  PowerDeviceMaximum      = ( PowerDeviceD3 + 1 )
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;

Constants

PowerDeviceUnspecified

The device power state is unspecified.

PowerDeviceD0

The device's working (D0) state. This is the device's highest power state.

PowerDeviceD1

The device's D1 sleeping state.

PowerDeviceD2

The device's D2 sleeping state.

PowerDeviceD3

The device's D3 sleeping state.

PowerDeviceMaximum

For system use only.

Remarks

The DEVICE_POWER_STATE enumeration is used as input to IWDFDevice2::AssignS0IdleSettings and IWDFDevice2::AssignSxWakeSettings.

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.9

Header

Wudfddi.h (include Wudfddi.h)

See also

IWDFDevice2::AssignS0IdleSettings
IWDFDevice2::AssignSxWakeSettings

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft