1 /** 2 * @file drivers/stepper/stepper_drv8424.h 3 * 4 * @brief Public API for DRV8424 Stepper Controller Specific Functions 5 * 6 */ 7 8 /* 9 * SPDX-FileCopyrightText: Copyright (c) 2024 Navimatix GmbH 10 * 11 * SPDX-License-Identifier: Apache-2.0 12 */ 13 14 #include <stdint.h> 15 #include <zephyr/drivers/stepper.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /** 22 * @brief After microstep setter fails, attempt to recover into previous state. 23 * 24 * @param dev Pointer to the stepper motor controller instance 25 * 26 * @retval 0 Success 27 * @retval <0 Error code dependent on the gpio controller of the microstep pins 28 */ 29 int drv8424_microstep_recovery(const struct device *dev); 30 31 #ifdef __cplusplus 32 } 33 #endif 34