Lines Matching full:velocity
191 LOG_ERR("Velocity not set or invalid velocity set"); in gpio_stepper_move_by()
233 LOG_ERR("Velocity not set or invalid velocity set"); in gpio_stepper_move_to()
254 static int gpio_stepper_set_max_velocity(const struct device *dev, uint32_t velocity) in gpio_stepper_set_max_velocity() argument
258 if (velocity == 0) { in gpio_stepper_set_max_velocity()
259 LOG_ERR("Velocity cannot be zero"); in gpio_stepper_set_max_velocity()
263 if (velocity > USEC_PER_SEC) { in gpio_stepper_set_max_velocity()
264 LOG_ERR("Velocity cannot be greater than %d micro_steps_per_second", USEC_PER_SEC); in gpio_stepper_set_max_velocity()
269 data->delay_in_us = USEC_PER_SEC / velocity; in gpio_stepper_set_max_velocity()
271 LOG_DBG("Setting Motor Speed to %d", velocity); in gpio_stepper_set_max_velocity()
276 const uint32_t velocity) in gpio_stepper_run() argument
288 if (velocity != 0) { in gpio_stepper_run()
289 data->delay_in_us = USEC_PER_SEC / velocity; in gpio_stepper_run()