Lines Matching refs:stepper
38 const struct device *stepper; member
155 const struct tmc5041_stepper_config *stepper_config = stepper_data->stepper->config; in stallguard_work_handler()
157 err = stallguard_enable(stepper_data->stepper, true); in stallguard_work_handler()
187 const struct tmc5041_stepper_config *stepper_config = stepper_data->stepper->config; in rampstat_work_handler()
197 LOG_ERR("%s: Failed to read DRVSTATUS register", stepper_data->stepper->name); in rampstat_work_handler()
202 LOG_INF("%s: Stall detected", stepper_data->stepper->name); in rampstat_work_handler()
207 LOG_ERR("%s: Failed to stop motor", stepper_data->stepper->name); in rampstat_work_handler()
217 LOG_ERR("%s: Failed to read RAMPSTAT register", stepper_data->stepper->name); in rampstat_work_handler()
227 LOG_DBG("RAMPSTAT %s:Left end-stop detected", stepper_data->stepper->name); in rampstat_work_handler()
228 execute_callback(stepper_data->stepper, in rampstat_work_handler()
233 LOG_DBG("RAMPSTAT %s:Right end-stop detected", stepper_data->stepper->name); in rampstat_work_handler()
234 execute_callback(stepper_data->stepper, in rampstat_work_handler()
239 LOG_DBG("RAMPSTAT %s:Position reached", stepper_data->stepper->name); in rampstat_work_handler()
240 execute_callback(stepper_data->stepper, STEPPER_EVENT_STEPS_COMPLETED); in rampstat_work_handler()
244 LOG_DBG("RAMPSTAT %s:Stall detected", stepper_data->stepper->name); in rampstat_work_handler()
245 stallguard_enable(stepper_data->stepper, false); in rampstat_work_handler()
246 execute_callback(stepper_data->stepper, STEPPER_EVENT_STALL_DETECTED); in rampstat_work_handler()
720 .stepper = DEVICE_DT_GET(child),};
723 static DEVICE_API(stepper, tmc5041_stepper_api_##child) = { \