Lines Matching refs:fixture

46 	static struct drv8424_api_fixture fixture = {  in drv8424_api_setup()  local
55 zassert_not_null(fixture.dev); in drv8424_api_setup()
56 return &fixture; in drv8424_api_setup()
61 struct drv8424_api_fixture *fixture = f; in drv8424_api_before() local
62 (void)stepper_set_reference_position(fixture->dev, 0); in drv8424_api_before()
63 (void)stepper_set_micro_step_res(fixture->dev, 1); in drv8424_api_before()
69 struct drv8424_api_fixture *fixture = f; in drv8424_api_after() local
70 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, 0); in drv8424_api_after()
75 (void)stepper_set_micro_step_res(fixture->dev, 4); in ZTEST_F()
77 (void)stepper_get_micro_step_res(fixture->dev, &res); in ZTEST_F()
86 ret = stepper_set_micro_step_res(fixture->dev, 3); in ZTEST_F()
94 (void)stepper_set_reference_position(fixture->dev, pos); in ZTEST_F()
95 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
104 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
105 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
106 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
107 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
108 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
118 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
119 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
120 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
121 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
122 (void)stepper_get_actual_position(fixture->dev, &position_1); in ZTEST_F()
124 (void)stepper_get_actual_position(fixture->dev, &position_2); in ZTEST_F()
135 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
136 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
137 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
138 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
140 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
142 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
151 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
152 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
153 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
154 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
155 (void)stepper_get_actual_position(fixture->dev, &position_1); in ZTEST_F()
157 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
159 (void)stepper_get_actual_position(fixture->dev, &position_2); in ZTEST_F()
169 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
170 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
171 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
172 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
181 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
189 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
190 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
191 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
192 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
201 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
209 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
210 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
211 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
212 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
221 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
230 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
231 (void)stepper_set_max_velocity(fixture->dev, 0u); in ZTEST_F()
232 ret = stepper_move_to(fixture->dev, pos); in ZTEST_F()
236 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
245 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
246 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
247 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
248 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
249 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
258 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
259 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
260 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
261 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F()
270 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
280 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
281 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
283 ret = stepper_move_to(fixture->dev, pos); in ZTEST_F()
286 (void)stepper_get_actual_position(fixture->dev, &curr_pos); in ZTEST_F()
295 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
296 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
297 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
298 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
307 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()
315 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
316 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
317 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
318 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
327 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()
335 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
336 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
337 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
338 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
347 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()
357 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
358 (void)stepper_set_max_velocity(fixture->dev, 0u); in ZTEST_F()
359 ret = stepper_move_by(fixture->dev, steps); in ZTEST_F()
363 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F()
372 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
373 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
374 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
375 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
376 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
385 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
386 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
387 (void)stepper_set_event_callback(fixture->dev, fixture->callback, NULL); in ZTEST_F()
388 (void)stepper_move_by(fixture->dev, steps); in ZTEST_F()
397 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
407 (void)stepper_set_max_velocity(fixture->dev, 50u); in ZTEST_F()
408 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
410 ret = stepper_move_by(fixture->dev, steps); in ZTEST_F()
413 (void)stepper_get_actual_position(fixture->dev, &curr_pos); in ZTEST_F()
423 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
424 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, velocity); in ZTEST_F()
427 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()
437 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
438 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_NEGATIVE, velocity); in ZTEST_F()
441 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()
451 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
452 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, velocity); in ZTEST_F()
464 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
465 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, velocity); in ZTEST_F()
466 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
468 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, 0); in ZTEST_F()
476 (void)stepper_enable(fixture->dev, true); in ZTEST_F()
477 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, velocity); in ZTEST_F()
478 (void)stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, 0); in ZTEST_F()
479 (void)stepper_is_moving(fixture->dev, &moving); in ZTEST_F()
489 (void)stepper_enable(fixture->dev, false); in ZTEST_F()
491 ret = stepper_run(fixture->dev, STEPPER_DIRECTION_POSITIVE, velocity); in ZTEST_F()
494 (void)stepper_get_actual_position(fixture->dev, &steps); in ZTEST_F()