SensorsCxSensorDataReady function (sensorscx.h)
This function notifies the class extension that the driver has retrieved data.
void SensorsCxSensorDataReady( SENSOROBJECT Sensor, PSENSOR_COLLECTION_LIST pSensorData );
[in] A reference to a sensor object.
This function returns NTSTATUS with different values. Some values that may be returned are the following:
- STATUS_SUCCESS is returned if the function completes successfully.
- STATUS_UNSUCCESSFUL is returned if the function does not complete successfully.
- STATUS_INVALID_PARAMETER is returned if any of the _In_ parameters are NULL.
This function is implemented by the class extension and the driver must call it. Note that when batch latency expires for sensor drivers that support data batching, SensorsCxSensorDataReady is called repeatedly until all the batched data samples are delivered to the client. For more information about the callback function related to batch latency, see EvtSensorSetBatchLatency.