Lines Matching refs:api

222 	const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api;  in z_impl_stepper_enable()  local
224 return api->enable(dev, enable); in z_impl_stepper_enable()
244 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_move_by() local
246 return api->move_by(dev, micro_steps); in z_impl_stepper_move_by()
270 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_max_velocity() local
272 return api->set_max_velocity(dev, micro_steps_per_second); in z_impl_stepper_set_max_velocity()
292 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_micro_step_res() local
294 if (api->set_micro_step_res == NULL) { in z_impl_stepper_set_micro_step_res()
297 return api->set_micro_step_res(dev, resolution); in z_impl_stepper_set_micro_step_res()
316 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_get_micro_step_res() local
318 if (api->get_micro_step_res == NULL) { in z_impl_stepper_get_micro_step_res()
321 return api->get_micro_step_res(dev, resolution); in z_impl_stepper_get_micro_step_res()
339 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_reference_position() local
341 if (api->set_reference_position == NULL) { in z_impl_stepper_set_reference_position()
344 return api->set_reference_position(dev, value); in z_impl_stepper_set_reference_position()
361 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_get_actual_position() local
363 if (api->get_actual_position == NULL) { in z_impl_stepper_get_actual_position()
366 return api->get_actual_position(dev, value); in z_impl_stepper_get_actual_position()
387 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_move_to() local
389 if (api->move_to == NULL) { in z_impl_stepper_move_to()
392 return api->move_to(dev, micro_steps); in z_impl_stepper_move_to()
409 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_is_moving() local
411 if (api->is_moving == NULL) { in z_impl_stepper_is_moving()
414 return api->is_moving(dev, is_moving); in z_impl_stepper_is_moving()
442 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_run() local
444 if (api->run == NULL) { in z_impl_stepper_run()
447 return api->run(dev, direction, velocity); in z_impl_stepper_run()
468 const struct stepper_driver_api *api = (const struct stepper_driver_api *)dev->api; in z_impl_stepper_set_event_callback() local
470 if (api->set_event_callback == NULL) { in z_impl_stepper_set_event_callback()
473 return api->set_event_callback(dev, callback, user_data); in z_impl_stepper_set_event_callback()