3.2.8 STALS_ErrCode_t STALS_GetInterMeasurementTime
STALS_ErrCode_t STALS_GetInterMeasurementTime (void *pHandle, uint32_t *pAppliedInterMeasurmentInUs)
This function returns the actual intermeasurement.
Table 15. Parameters
Parameter Description
pHandle Opaque pointer used as the id of the instance of the driver
pAppliedInterMeasurmentInUs Pointer in which the value of the actual intermeasurement time is returned
Table 16. Return values
Return value Description
STALS_NO_ERROR Success
STALS_ERROR_INVALID_PARAMS At least one of the provided parameters to the function is invalid
3.2.9 STALS_ErrCode_t STALS_GetProductVersion
STALS_ErrCode_t STALS_GetProductVersion (void *pHandle, uint8_t *pDeviceID, uint8_t *pRevisionID)
This function returns the version of the device.
Table 17. Parameters
Parameter Description
pHandle Handle on the driver instance
pDeviceID Pointer in which the ID of the device is returned
pRevisionID Pointer in which the revision of the device is returned
Table 18. Return values
Return value Description
STALS_NO_ERROR Success
STALS_ERROR_INVALID_PARAMS At least one of the provided parameters is invalid
STALS_ERROR_WRITE Could not write any data on the device through I2C
UM2878
STALS API definition
UM2878 - Rev 1
page 10/27