@@ -82,69 +82,77 @@ enum stepper_event {
8282};
8383
8484/**
85- * @cond INTERNAL_HIDDEN
86- *
87- * Stepper hardware driver API definition and system call entry points.
88- *
85+ * @brief Callback function for stepper driver events
8986 */
87+ typedef void (* stepper_event_cb_t )(const struct device * dev , const enum stepper_event event ,
88+ void * user_data );
9089
9190/**
92- * @brief Enable the stepper hardware driver
93- *
94- * @see stepper_enable() for details.
91+ * @def_driverbackendgroup{Stepper Hardware Driver,stepper_hw_driver}
92+ * @{
9593 */
96- typedef int (* stepper_enable_t )(const struct device * dev );
9794
9895/**
99- * @brief Disable the stepper hardware driver
100- *
101- * @see stepper_disable() for details.
96+ * @brief Callback API to enable the stepper hardware driver.
97+ * See stepper_enable() for argument description.
10298 */
103- typedef int (* stepper_disable_t )(const struct device * dev );
99+ typedef int (* stepper_enable_t )(const struct device * dev );
104100
105101/**
106- * @brief Set the stepper micro-step resolution
107- *
108- * @see stepper_set_micro_step_res() for details.
102+ * @brief Callback API to disable the stepper hardware driver.
103+ * See stepper_disable() for argument description.
109104 */
110- typedef int (* stepper_set_micro_step_res_t )(
111- const struct device * dev , const enum stepper_micro_step_resolution resolution );
105+ typedef int (* stepper_disable_t )(const struct device * dev );
112106
113107/**
114- * @brief Get the stepper micro-step resolution
115- *
116- * @see stepper_get_micro_step_res() for details.
108+ * @brief Callback API to set the stepper micro-step resolution.
109+ * See stepper_set_micro_step_res() for argument description.
117110 */
118- typedef int (* stepper_get_micro_step_res_t )(const struct device * dev ,
119- enum stepper_micro_step_resolution * resolution );
111+ typedef int (* stepper_set_micro_step_res_t )(const struct device * dev ,
112+ const enum stepper_micro_step_resolution resolution );
120113
121114/**
122- * @brief Callback function for stepper driver events
115+ * @brief Callback API to get the stepper micro-step resolution.
116+ * See stepper_get_micro_step_res() for argument description.
123117 */
124- typedef void (* stepper_event_cb_t )(const struct device * dev , const enum stepper_event event ,
125- void * user_data );
118+ typedef int (* stepper_get_micro_step_res_t )(const struct device * dev ,
119+ enum stepper_micro_step_resolution * resolution );
126120
127121/**
128- * @brief Set the callback function to be called when a stepper_event occurs
129- *
130- * @see stepper_set_event_cb() for details.
122+ * @brief Callback API to set the event callback function.
123+ * See stepper_set_event_cb() for argument description.
131124 */
132- typedef int (* stepper_set_event_cb_t )(const struct device * dev ,
133- stepper_event_cb_t callback , void * user_data );
125+ typedef int (* stepper_set_event_cb_t )(const struct device * dev , stepper_event_cb_t callback ,
126+ void * user_data );
134127
135128/**
136129 * @driver_ops{Stepper Hardware Driver}
137130 */
138131__subsystem struct stepper_driver_api {
132+ /**
133+ * @driver_ops_mandatory @copybrief stepper_enable
134+ */
139135 stepper_enable_t enable ;
136+ /**
137+ * @driver_ops_mandatory @copybrief stepper_disable
138+ */
140139 stepper_disable_t disable ;
140+ /**
141+ * @driver_ops_mandatory @copybrief stepper_set_micro_step_res
142+ */
141143 stepper_set_micro_step_res_t set_micro_step_res ;
144+ /**
145+ * @driver_ops_mandatory @copybrief stepper_get_micro_step_res
146+ */
142147 stepper_get_micro_step_res_t get_micro_step_res ;
148+ /**
149+ * @driver_ops_optional @copybrief stepper_set_event_cb
150+ */
143151 stepper_set_event_cb_t set_event_cb ;
144152};
145153
146154/**
147- * @endcond
155+ * @}
148156 */
149157
150158/**
0 commit comments