Searched refs:sensorNode (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/drivers/peripheral/sensor/test/common/src/ |
H A D | sensor_callback_impl.cpp | 72 void SensorDataVerification(const float &data, const struct SensorDevelopmentList &sensorNode) in SensorDataVerification() argument 74 for (int32_t j = 0; j < sensorNode.dataDimension; ++j) { in SensorDataVerification() 75 if (sensorNode.dataForm == 0) { in SensorDataVerification() 76 if (std::abs(*(&data + j) - sensorNode.valueRange[j].highThreshold) < EPSINON || in SensorDataVerification() 77 std::abs(*(&data + j) - sensorNode.valueRange[j].lowThreshold) < EPSINON) { in SensorDataVerification() 81 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification() 85 if (sensorNode.dataForm == 1) { in SensorDataVerification() 86 if (*(&data + j) >= sensorNode.valueRange[j].lowThreshold && in SensorDataVerification() 87 *(&data + j) <= sensorNode.valueRange[j].highThreshold) { in SensorDataVerification() 91 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification()
|
/ohos5.0/drivers/peripheral/sensor/hal/src/ |
H A D | sensor_dump.c | 110 … void ShowData(const float *data, int64_t timesTamp, const struct SensorDevelopmentList sensorNode, in ShowData() argument 116 if (sensorNode.dataDimension == DATA_X) { in ShowData() 119 sensorNode.sensorName, sensorNode.sensorTypeId, timesTamp / 1e9, *(data)); in ShowData() 127 … sensorNode.sensorName, sensorNode.sensorTypeId, timesTamp / 1e9, *(data), *(data + DATA_X), in ShowData()
|
/ohos5.0/drivers/peripheral/sensor/test/unittest/common/ |
H A D | hdf_sensor_test.cpp | 81 void SensorDataVerification(const float &data, const struct SensorDevelopmentList &sensorNode) in SensorDataVerification() argument 83 for (int32_t j = 0; j < sensorNode.dataDimension; ++j) { in SensorDataVerification() 84 … printf("sensor id :[%d], data[%d]: %f\n\r", sensorNode.sensorTypeId, j + 1, *(&data + j)); in SensorDataVerification() 85 if (sensorNode.dataForm == 0) { in SensorDataVerification() 86 if (std::abs(*(&data + j) - sensorNode.valueRange[j].highThreshold) < EPSINON || in SensorDataVerification() 87 std::abs(*(&data + j) - sensorNode.valueRange[j].lowThreshold) < EPSINON) { in SensorDataVerification() 91 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification() 95 if (sensorNode.dataForm == 1) { in SensorDataVerification() 96 if (*(&data + j) > sensorNode.valueRange[j].lowThreshold && in SensorDataVerification() 97 *(&data + j) < sensorNode.valueRange[j].highThreshold) { in SensorDataVerification() [all …]
|