mirror of
https://github.com/openharmony/drivers_peripheral.git
synced 2026-08-24 18:15:56 -04:00
@@ -343,6 +343,21 @@ int32_t SensorImpl::SdcSensorActive(int32_t sensorId, bool enabled, int32_t rate
|
||||
return ret;
|
||||
}
|
||||
|
||||
int32_t SensorImpl::GetSdcSensorInfo(std::vector<SdcSensorInfoVdi>& sdcSensorInfoVdis)
|
||||
{
|
||||
HDF_LOGI("%{public}s: Enter the GetSdcSensorInfo function", __func__);
|
||||
CHECK_SENSOR_MODULE_INSTANCE(sensorInterface, sensorInterface->GetSdcSensorInfo);
|
||||
|
||||
StartTrace(HITRACE_TAG_SENSORS, "GetSdcSensorInfo");
|
||||
int32_t ret = sensorInterface->GetSdcSensorInfo(sdcSensorInfoVdis);
|
||||
FinishTrace(HITRACE_TAG_SENSORS);
|
||||
if (ret != SENSOR_SUCCESS) {
|
||||
HDF_LOGE("%{public}s failed, error code is %{public}d", __func__, ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int32_t SensorImpl::UnregisterImpl(int32_t groupId, IRemoteObject *callbackObj)
|
||||
{
|
||||
CHECK_SENSOR_MODULE_INSTANCE(sensorInterface, sensorInterface->Unregister);
|
||||
|
||||
Reference in New Issue
Block a user