Lines Matching refs:sensors

14 …ensor_Info **infos, uint32_t *count)     | Obtains information about all sensors on the device.   …
15sensors, request the **ohos.permission.ACCELEROMETER** permission.<br>To subscribe to data of gyro…
16sensors, request the **ohos.permission.ACCELEROMETER** permission.<br>To unsubscribe from data of …
18 | OH_Sensor_DestroyInfos(Sensor_Info **sensors, uint32_t count) | Destroys the array of instances a…
69 #include "sensors/oh_sensor.h"
125 7. Obtain information about all sensors on the device.
131 …int32_t ret = OH_Sensor_GetInfos(nullptr, &count); // Obtain the number of all sensors on the devi…
135 …Sensor_Info **sensors = OH_Sensor_CreateInfos(count); // Create an array of instances with the giv…
136 if (sensors == nullptr) {
139 … ret = OH_Sensor_GetInfos(sensors, &count); // Obtain information about all sensors on the device.
146 ret = OH_SensorInfo_GetName(sensors[i], sensorName, &length); // Obtain the sensor name.
152 …ret = OH_SensorInfo_GetVendorName(sensors[i], vendorName, &length); // Obtain the manufacturer nam…
157 ret = OH_SensorInfo_GetType(sensors[i], &sensorType); // Obtain the sensor type.
162 … ret = OH_SensorInfo_GetResolution(sensors[i], &resolution); // Obtain the sensor resolution.
167 …ret = OH_SensorInfo_GetMinSamplingInterval(sensors[i], &minSamplePeriod); // Obtain the minimum da…
172 …ret = OH_SensorInfo_GetMaxSamplingInterval(sensors[i], &maxSamplePeriod); // Obtain the maximum da…
178 …ret = OH_Sensor_DestroyInfos(sensors, count); // Destroy an array of instances and reclaim the mem…