sensorscx.h header

This header is used by sensors. For more information, see:

sensorscx.h contains the following programming interfaces:

Functions

 
SENSOR_CONFIG_INIT

This function initializes a SENSOR_CONFIG structure.
SENSOR_CONTROLLER_CONFIG_INIT

This function initializes a SENSOR_CONTROLLER_CONFIG structure.
SensorsCxDeviceGetSensorList

This function returns a list of sensor instances associated with a WDFDEVICE.
SensorsCxDeviceInitConfig

This function configures the sensor device.
SensorsCxDeviceInitialize

This function initializes the sensor in the class extension.
SensorsCxSensorCreate

This function creates an instance of a sensor in the class extension.
SensorsCxSensorDataReady

This function notifies the class extension that the driver has retrieved data.
SensorsCxSensorHistoryRetrievalCompleted

The SensorsCxSensorHistoryRetrievalCompleted function indicates that the history retrieval has completed.
SensorsCxSensorInitialize

This function sets the enumeration properties of a sensor.
SensorsCxStateChange

Used to initialize a state change.

Callback functions

 
EVT_SENSOR_DRIVER_CANCEL_HISTORY_RETRIEVAL

Cancels history retrieval from the sensor.
EVT_SENSOR_DRIVER_CLEAR_SENSOR_HISTORY

Clears the history recorded so far in the sensor.
EVT_SENSOR_DRIVER_DEVICE_IO_CONTROL

Callback to handle IOCTL.
EVT_SENSOR_DRIVER_DISABLE_WAKE

Callback to disable wake for the sensor.
EVT_SENSOR_DRIVER_ENABLE_WAKE

Callback to enable wake for the sensor.
EVT_SENSOR_DRIVER_GET_DATA_FIELD_PROPERTIES

This callback function returns the properties of a given data field associated with a sensor.
EVT_SENSOR_DRIVER_GET_DATA_INTERVAL

This callback function returns the data interval for a specified sensor.
EVT_SENSOR_DRIVER_GET_DATA_THRESHOLDS

This callback function returns the thresholds that are associated with a sensor.
EVT_SENSOR_DRIVER_GET_PROPERTIES

This callback function returns the properties for a given sensor.
EVT_SENSOR_DRIVER_GET_SUPPORTED_DATA_FIELDS

This callback function returns a list of data fields supported by the specified sensor.
EVT_SENSOR_DRIVER_SET_BATCH_LATENCY

This callback function sets the batch latency for a specified sensor.
EVT_SENSOR_DRIVER_SET_DATA_INTERVAL

This callback function sets the data interval for a specified sensor.
EVT_SENSOR_DRIVER_SET_DATA_THRESHOLDS

This callback function sets the threshold for one or more data fields associated with a sensor.
EVT_SENSOR_DRIVER_START_HISTORY_RETRIEVAL

Starts retrieving the history recorded so far in the sensor.
EVT_SENSOR_DRIVER_START_SENSOR

This callback function starts the sensor based on the default properties specified by the driver, or properties set by the class extension.
EVT_SENSOR_DRIVER_START_SENSOR_HISTORY

Starts recording history in the sensor.
EVT_SENSOR_DRIVER_START_STATE_CHANGE_NOTIFICATION

Used to start a state change notification.
EVT_SENSOR_DRIVER_STOP_SENSOR

This callback function stops the sensor.
EVT_SENSOR_DRIVER_STOP_SENSOR_HISTORY

Stops recording history in the sensor.
EVT_SENSOR_DRIVER_STOP_STATE_CHANGE_NOTIFICATION

Used to stop a state change notification.
PFN_SENSORSCXDEVICEGETSENSORLIST

Returns a list of sensor instances associated with a WDFDEVICE.
PFN_SENSORSCXDEVICEINITCONFIG

Configures the sensor device.
PFN_SENSORSCXDEVICEINITIALIZE

Initializes the sensor in the class extension.
PFN_SENSORSCXSENSORCREATE

Creates an instance of a sensor in the class extension.
PFN_SENSORSCXSENSORDATAREADY

Notifies the class extension that the driver has retrieved data.
PFN_SENSORSCXSENSORHISTORYRETRIEVALCOMPLETED

Indicates that the history retrieval has completed.
PFN_SENSORSCXSENSORINITIALIZE

Sets the enumeration properties of a sensor.
PFN_SENSORSCXSTATECHANGE

Used to initialize a sensor state change.

Structures

 
SENSOR_CONFIG

This structure contains information that the sensor driver passes to the class extension about each sensor.
SENSOR_CONTROLLER_CONFIG

This structure contains pointers to callback functions that must be implemented by the driver, and passed on to the class extension to call.