Home
last modified time | relevance | path

Searched refs:micro_steps (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/include/zephyr/drivers/
Dstepper.h113 typedef int (*stepper_move_by_t)(const struct device *dev, const int32_t micro_steps);
157 typedef int (*stepper_move_to_t)(const struct device *dev, const int32_t micro_steps);
240 __syscall int stepper_move_by(const struct device *dev, int32_t micro_steps);
242 static inline int z_impl_stepper_move_by(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_by() argument
246 return api->move_by(dev, micro_steps); in z_impl_stepper_move_by()
383 __syscall int stepper_move_to(const struct device *dev, int32_t micro_steps);
385 static inline int z_impl_stepper_move_to(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_to() argument
392 return api->move_to(dev, micro_steps); in z_impl_stepper_move_to()
/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c181 static int gpio_stepper_move_by(const struct device *dev, int32_t micro_steps) in gpio_stepper_move_by() argument
196 data->step_count = micro_steps; in gpio_stepper_move_by()
223 static int gpio_stepper_move_to(const struct device *dev, int32_t micro_steps) in gpio_stepper_move_to() argument
238 data->step_count = micro_steps - data->actual_position; in gpio_stepper_move_to()
Dstepper_shell.c203 int32_t micro_steps = shell_strtol(argv[ARG_IDX_PARAM], 10, &err); in cmd_stepper_move_by() local
219 err = stepper_move_by(dev, micro_steps); in cmd_stepper_move_by()
/Zephyr-latest/drivers/stepper/step_dir/
Dstep_dir_stepper_common.h141 int step_dir_stepper_common_move_by(const struct device *dev, const int32_t micro_steps);
Dstep_dir_stepper_common.c226 int step_dir_stepper_common_move_by(const struct device *dev, const int32_t micro_steps) in step_dir_stepper_common_move_by() argument
238 data->step_count = micro_steps; in step_dir_stepper_common_move_by()
/Zephyr-latest/drivers/stepper/adi_tmc/
Dadi_tmc5041_stepper_controller.c304 static int tmc5041_stepper_move_by(const struct device *dev, const int32_t micro_steps) in tmc5041_stepper_move_by() argument
323 int32_t target_position = position + micro_steps; in tmc5041_stepper_move_by()
331 micro_steps); in tmc5041_stepper_move_by()
445 static int tmc5041_stepper_move_to(const struct device *dev, const int32_t micro_steps) in tmc5041_stepper_move_to() argument
447 LOG_DBG("Stepper motor controller %s set target position to %d", dev->name, micro_steps); in tmc5041_stepper_move_to()
461 err = tmc5041_write(config->controller, TMC5041_XTARGET(config->index), micro_steps); in tmc5041_stepper_move_to()