Lines Matching refs:pos
93 int32_t pos = 100u; in ZTEST_F() local
94 (void)stepper_set_reference_position(fixture->dev, pos); in ZTEST_F()
95 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
96 zassert_equal(pos, 100u, "Actual position should be %u but is %u", 100u, pos); in ZTEST_F()
167 int32_t pos = 50; in ZTEST_F() local
172 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
181 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
182 zassert_equal(pos, 50u, "Target position should be %d but is %d", 50u, pos); in ZTEST_F()
187 int32_t pos = -50; in ZTEST_F() local
192 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
201 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
202 zassert_equal(pos, -50, "Target position should be %d but is %d", -50, pos); in ZTEST_F()
207 int32_t pos = 0; in ZTEST_F() local
212 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
221 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
222 zassert_equal(pos, 0, "Target position should not have changed from %d but is %d", 0, pos); in ZTEST_F()
227 int32_t pos = 100; in ZTEST_F() local
232 ret = stepper_move_to(fixture->dev, pos); in ZTEST_F()
236 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
237 zassert_equal(pos, 0, "Target position should not have changed from %d but is %d", 0, pos); in ZTEST_F()
242 int32_t pos = 50; in ZTEST_F() local
248 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
255 int32_t pos = 50; in ZTEST_F() local
261 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
276 int32_t pos = 50; in ZTEST_F() local
283 ret = stepper_move_to(fixture->dev, pos); in ZTEST_F()
355 int32_t pos = 100; in ZTEST_F() local
363 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
364 zassert_equal(pos, 0, "Target position should not have changed from %d but is %d", 0, pos); in ZTEST_F()