SensorState enumeration

The SensorState enumeration type specifies the current operational state of a sensor.

Syntax


enum SensorState {  SENSOR_STATE_MIN            = 0, 
  SENSOR_STATE_READY          = SENSOR_STATE_MIN, 
  SENSOR_STATE_NOT_AVAILABLE  = ( SENSOR_STATE_READY + 1 ), 
  SENSOR_STATE_NO_DATA        = ( SENSOR_STATE_NOT_AVAILABLE + 1 ), 
  SENSOR_STATE_INITIALIZING   = ( SENSOR_STATE_NO_DATA + 1 ), 
  SENSOR_STATE_ACCESS_DENIED  = ( SENSOR_STATE_INITIALIZING + 1 ), 
  SENSOR_STATE_ERROR          = ( SENSOR_STATE_ACCESS_DENIED + 1 ), 
  SENSOR_STATE_MAX            = SENSOR_STATE_ERROR 

};

Constants

SENSOR_STATE_MIN

Reserved.

SENSOR_STATE_READY

Indicates that the sensor is ready.

SENSOR_STATE_NOT_AVAILABLE

Indicates that the sensor is not currently available for use.

SENSOR_STATE_NO_DATA

Indicates that no data available.

SENSOR_STATE_INITIALIZING

Indicates that the sensor is not yet ready for use. Try again.

SENSOR_STATE_ACCESS_DENIED

Reserved. Do not use in driver code.

SENSOR_STATE_ERROR

Indicates that an unspecified error occurred.

SENSOR_STATE_MAX

Reserved.

Remarks

This enumeration also defines values used for the SENSOR_PROPERTY_STATE property.

Requirements

Minimum supported client

Windows 7

Minimum supported server

None supported

Version

Available in Windows 7.

Header

SensorsClassExtension.h

See also

ISensorDriver::OnGetProperties
ISensorClassExtension::PostStateChange

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft