Lines Matching +full:accel +full:- +full:range

3  * SPDX-License-Identifier: Apache-2.0
45 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, &status, 1); in ZTEST_F()
46 zassert_equal(-EBUSY, sensor_sample_fetch(fixture->dev)); in ZTEST_F()
59 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, buffer, 1); in test_fetch_temp_mc()
65 temperature_reg = ((temperature_mc - 25000) * 13248) / 100000; in test_fetch_temp_mc()
68 icm42688_emul_set_reg(fixture->target, REG_TEMP_DATA1, buffer, 2); in test_fetch_temp_mc()
71 zassert_ok(sensor_sample_fetch(fixture->dev)); in test_fetch_temp_mc()
72 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_DIE_TEMP, &value)); in test_fetch_temp_mc()
74 /* Assert data is within 5 milli-C of the tested temperature */ in test_fetch_temp_mc()
85 /* Test -3.175C */ in ZTEST_F()
86 test_fetch_temp_mc(fixture, -3175); in ZTEST_F()
99 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, register_buffer, 1); in test_fetch_accel_with_range()
101 /* Set accel range */ in test_fetch_accel_with_range()
103 zassert_ok(sensor_attr_set(fixture->dev, SENSOR_CHAN_ACCEL_XYZ, SENSOR_ATTR_FULL_SCALE, in test_fetch_accel_with_range()
106 /* Set the accel data accel_percent * accel_range_g */ in test_fetch_accel_with_range()
111 icm42688_emul_set_reg(fixture->target, REG_ACCEL_DATA_X1, register_buffer, 6); in test_fetch_accel_with_range()
114 zassert_ok(sensor_sample_fetch(fixture->dev)); in test_fetch_accel_with_range()
115 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_ACCEL_XYZ, values)); in test_fetch_accel_with_range()
136 /* Use (0.25, -0.33.., 0.91) * range for testing accel values */ in ZTEST_F()
161 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, register_buffer, 1); in test_fetch_gyro_with_range()
163 /* Set gyro range */ in test_fetch_gyro_with_range()
165 zassert_ok(sensor_attr_set(fixture->dev, SENSOR_CHAN_GYRO_XYZ, SENSOR_ATTR_FULL_SCALE, in test_fetch_gyro_with_range()
173 icm42688_emul_set_reg(fixture->target, REG_GYRO_DATA_X1, register_buffer, 6); in test_fetch_gyro_with_range()
176 zassert_ok(sensor_sample_fetch(fixture->dev)); in test_fetch_gyro_with_range()
177 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_GYRO_XYZ, values)); in test_fetch_gyro_with_range()
204 /* Use (0.15, 0.68, -0.22) * range for testing gyro values */ in ZTEST_F()
208 (int16_t)((INT16_MAX * INT32_C(-22)) / INT32_C(100)), in ZTEST_F()
232 sensor_trigger_set(fixture->dev, &trigger, test_interrupt_trigger_handler); in ZTEST_F()