Lines Matching refs:dev
81 typedef int (*stepper_set_reference_position_t)(const struct device *dev, const int32_t value);
88 typedef int (*stepper_get_actual_position_t)(const struct device *dev, int32_t *value);
93 typedef void (*stepper_event_callback_t)(const struct device *dev, const enum stepper_event event,
101 typedef int (*stepper_set_event_callback_t)(const struct device *dev,
109 typedef int (*stepper_set_microstep_interval_t)(const struct device *dev,
116 typedef int (*stepper_move_by_t)(const struct device *dev, const int32_t micro_steps);
123 typedef int (*stepper_move_to_t)(const struct device *dev, const int32_t micro_steps);
130 typedef int (*stepper_run_t)(const struct device *dev, const enum stepper_direction direction);
137 typedef int (*stepper_stop_t)(const struct device *dev);
144 typedef int (*stepper_is_moving_t)(const struct device *dev, bool *is_moving);
175 __syscall int stepper_set_reference_position(const struct device *dev, int32_t value);
177 static inline int z_impl_stepper_set_reference_position(const struct device *dev, in z_impl_stepper_set_reference_position() argument
180 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_set_reference_position()
181 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_reference_position()
186 return api->set_reference_position(dev, value); in z_impl_stepper_set_reference_position()
201 __syscall int stepper_get_actual_position(const struct device *dev, int32_t *value);
203 static inline int z_impl_stepper_get_actual_position(const struct device *dev, int32_t *value) in z_impl_stepper_get_actual_position() argument
205 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_get_actual_position()
207 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_get_actual_position()
212 return api->get_actual_position(dev, value); in z_impl_stepper_get_actual_position()
226 __syscall int stepper_set_event_callback(const struct device *dev,
229 static inline int z_impl_stepper_set_event_callback(const struct device *dev, in z_impl_stepper_set_event_callback() argument
233 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_set_event_callback()
234 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_event_callback()
239 return api->set_event_callback(dev, callback, user_data); in z_impl_stepper_set_event_callback()
256 __syscall int stepper_set_microstep_interval(const struct device *dev,
259 static inline int z_impl_stepper_set_microstep_interval(const struct device *dev, in z_impl_stepper_set_microstep_interval() argument
262 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_set_microstep_interval()
263 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_microstep_interval()
268 return api->set_microstep_interval(dev, microstep_interval_ns); in z_impl_stepper_set_microstep_interval()
284 __syscall int stepper_move_by(const struct device *dev, int32_t micro_steps);
286 static inline int z_impl_stepper_move_by(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_by() argument
288 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_move_by()
289 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_move_by()
291 return api->move_by(dev, micro_steps); in z_impl_stepper_move_by()
307 __syscall int stepper_move_to(const struct device *dev, int32_t micro_steps);
309 static inline int z_impl_stepper_move_to(const struct device *dev, const int32_t micro_steps) in z_impl_stepper_move_to() argument
311 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_move_to()
312 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_move_to()
314 return api->move_to(dev, micro_steps); in z_impl_stepper_move_to()
332 __syscall int stepper_run(const struct device *dev, enum stepper_direction direction);
334 static inline int z_impl_stepper_run(const struct device *dev, in z_impl_stepper_run() argument
337 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_run()
338 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_run()
343 return api->run(dev, direction); in z_impl_stepper_run()
356 __syscall int stepper_stop(const struct device *dev);
358 static inline int z_impl_stepper_stop(const struct device *dev) in z_impl_stepper_stop() argument
360 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_stop()
361 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_stop()
366 return api->stop(dev); in z_impl_stepper_stop()
379 __syscall int stepper_is_moving(const struct device *dev, bool *is_moving);
381 static inline int z_impl_stepper_is_moving(const struct device *dev, bool *is_moving) in z_impl_stepper_is_moving() argument
383 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_is_moving()
385 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_is_moving()
390 return api->is_moving(dev, is_moving); in z_impl_stepper_is_moving()
462 typedef int (*stepper_drv_enable_t)(const struct device *dev);
469 typedef int (*stepper_drv_disable_t)(const struct device *dev);
477 const struct device *dev, const enum stepper_drv_micro_step_resolution resolution);
484 typedef int (*stepper_drv_get_micro_step_res_t)(const struct device *dev,
490 typedef void (*stepper_drv_event_cb_t)(const struct device *dev, const enum stepper_drv_event event,
498 typedef int (*stepper_drv_set_event_callback_t)(const struct device *dev,
526 __syscall int stepper_drv_enable(const struct device *dev);
528 static inline int z_impl_stepper_drv_enable(const struct device *dev) in z_impl_stepper_drv_enable() argument
530 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_drv_enable()
531 const struct stepper_drv_driver_api *api = (const struct stepper_drv_driver_api *)dev->api; in z_impl_stepper_drv_enable()
533 return api->enable(dev); in z_impl_stepper_drv_enable()
547 __syscall int stepper_drv_disable(const struct device *dev);
549 static inline int z_impl_stepper_drv_disable(const struct device *dev) in z_impl_stepper_drv_disable() argument
551 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_drv_disable()
552 const struct stepper_drv_driver_api *api = (const struct stepper_drv_driver_api *)dev->api; in z_impl_stepper_drv_disable()
554 return api->disable(dev); in z_impl_stepper_drv_disable()
568 __syscall int stepper_drv_set_micro_step_res(const struct device *dev,
571 static inline int z_impl_stepper_drv_set_micro_step_res(const struct device *dev, in z_impl_stepper_drv_set_micro_step_res() argument
574 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_drv_set_micro_step_res()
575 const struct stepper_drv_driver_api *api = (const struct stepper_drv_driver_api *)dev->api; in z_impl_stepper_drv_set_micro_step_res()
580 return api->set_micro_step_res(dev, res); in z_impl_stepper_drv_set_micro_step_res()
592 __syscall int stepper_drv_get_micro_step_res(const struct device *dev,
595 static inline int z_impl_stepper_drv_get_micro_step_res(const struct device *dev, in z_impl_stepper_drv_get_micro_step_res() argument
598 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_drv_get_micro_step_res()
600 const struct stepper_drv_driver_api *api = (const struct stepper_drv_driver_api *)dev->api; in z_impl_stepper_drv_get_micro_step_res()
602 return api->get_micro_step_res(dev, res); in z_impl_stepper_drv_get_micro_step_res()
616 __syscall int stepper_drv_set_event_cb(const struct device *dev, stepper_drv_event_cb_t callback,
619 static inline int z_impl_stepper_drv_set_event_cb(const struct device *dev, in z_impl_stepper_drv_set_event_cb() argument
622 __ASSERT_NO_MSG(dev != NULL); in z_impl_stepper_drv_set_event_cb()
623 const struct stepper_drv_driver_api *api = (const struct stepper_drv_driver_api *)dev->api; in z_impl_stepper_drv_set_event_cb()
629 return api->set_event_cb(dev, cb, user_data); in z_impl_stepper_drv_set_event_cb()