Searched refs:micro_steps (Results 1 – 7 of 7) sorted by relevance
| /Zephyr-latest/include/zephyr/drivers/ |
| D | stepper.h | 168 typedef int (*stepper_move_by_t)(const struct device *dev, const int32_t micro_steps); 175 typedef int (*stepper_move_to_t)(const struct device *dev, const int32_t micro_steps); 402 __syscall int stepper_move_by(const struct device *dev, int32_t micro_steps); 404 static inline int z_impl_stepper_move_by(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_by() argument 408 return api->move_by(dev, micro_steps); in z_impl_stepper_move_by() 425 __syscall int stepper_move_to(const struct device *dev, int32_t micro_steps); 427 static inline int z_impl_stepper_move_to(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_to() argument 434 return api->move_to(dev, micro_steps); in z_impl_stepper_move_to()
|
| /Zephyr-latest/drivers/stepper/ |
| D | gpio_stepper_controller.c | 181 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()
|
| D | stepper_shell.c | 230 int32_t micro_steps = shell_strtol(argv[ARG_IDX_PARAM], 10, &err); in cmd_stepper_move_by() local 246 err = stepper_move_by(dev, micro_steps); in cmd_stepper_move_by()
|
| /Zephyr-latest/drivers/stepper/adi_tmc/ |
| D | adi_tmc50xx_stepper_controller.c | 304 static int tmc50xx_stepper_move_by(const struct device *dev, const int32_t micro_steps) in tmc50xx_stepper_move_by() argument 323 int32_t target_position = position + micro_steps; in tmc50xx_stepper_move_by() 331 micro_steps); in tmc50xx_stepper_move_by() 445 static int tmc50xx_stepper_move_to(const struct device *dev, const int32_t micro_steps) in tmc50xx_stepper_move_to() argument 447 LOG_DBG("Stepper motor controller %s set target position to %d", dev->name, micro_steps); in tmc50xx_stepper_move_to() 461 err = tmc50xx_write(config->controller, TMC50XX_XTARGET(config->index), micro_steps); in tmc50xx_stepper_move_to()
|
| /Zephyr-latest/drivers/stepper/step_dir/ |
| D | step_dir_stepper_common.h | 141 int step_dir_stepper_common_move_by(const struct device *dev, const int32_t micro_steps);
|
| D | step_dir_stepper_common.c | 226 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/allegro/ |
| D | a4979.c | 145 static int a4979_stepper_move_by(const struct device *dev, const int32_t micro_steps) in a4979_stepper_move_by() argument 154 return step_dir_stepper_common_move_by(dev, micro_steps); in a4979_stepper_move_by()
|