3939#endif /* RT_USING_DEVICE_OPS */
4040
4141/**
42- * @brief This function registers a device driver with specified name.
42+ * @brief This function registers a device driver with a specified name.
4343 *
44- * @param dev the pointer of device driver structure.
44+ * @param dev is the pointer of device driver structure.
4545 *
46- * @param name the device driver's name.
46+ * @param name is the device driver's name.
4747 *
48- * @param flags the capabilities flag of device.
48+ * @param flags is the capabilities flag of device.
4949 *
5050 * @return the error code, RT_EOK on initialization successfully.
5151 */
@@ -76,7 +76,7 @@ RTM_EXPORT(rt_device_register);
7676/**
7777 * @brief This function removes a previously registered device driver.
7878 *
79- * @param dev the pointer of device driver structure.
79+ * @param dev is the pointer of device driver structure.
8080 *
8181 * @return the error code, RT_EOK on successfully.
8282 */
@@ -95,7 +95,7 @@ RTM_EXPORT(rt_device_unregister);
9595/**
9696 * @brief This function finds a device driver by specified name.
9797 *
98- * @param name the device driver's name.
98+ * @param name is the device driver's name.
9999 *
100100 * @return the registered device driver on successful, or RT_NULL on failure.
101101 */
@@ -109,9 +109,9 @@ RTM_EXPORT(rt_device_find);
109109/**
110110 * @brief This function creates a device object with user data size.
111111 *
112- * @param type the kind type of this device object.
112+ * @param type is the type of the device object.
113113 *
114- * @param attach_size the size of user data.
114+ * @param attach_size is the size of user data.
115115 *
116116 * @return the allocated device object, or RT_NULL when failed.
117117 */
@@ -139,7 +139,7 @@ RTM_EXPORT(rt_device_create);
139139/**
140140 * @brief This function destroy the specific device object.
141141 *
142- * @param dev the specific device object.
142+ * @param dev is a specific device object.
143143 */
144144void rt_device_destroy (rt_device_t dev )
145145{
@@ -158,7 +158,7 @@ RTM_EXPORT(rt_device_destroy);
158158/**
159159 * @brief This function will initialize the specified device.
160160 *
161- * @param dev the pointer of device driver structure.
161+ * @param dev is the pointer of device driver structure.
162162 *
163163 * @return the result, RT_EOK on successfully.
164164 */
@@ -192,9 +192,9 @@ rt_err_t rt_device_init(rt_device_t dev)
192192/**
193193 * @brief This function will open a device.
194194 *
195- * @param dev the pointer of device driver structure.
195+ * @param dev is the pointer of device driver structure.
196196 *
197- * @param oflag the flags for device open.
197+ * @param oflag is the flags for device open.
198198 *
199199 * @return the result, RT_EOK on successfully.
200200 */
@@ -259,7 +259,7 @@ RTM_EXPORT(rt_device_open);
259259/**
260260 * @brief This function will close a device.
261261 *
262- * @param dev the pointer of device driver structure.
262+ * @param dev is the pointer of device driver structure.
263263 *
264264 * @return the result, RT_EOK on successfully.
265265 */
@@ -295,13 +295,13 @@ RTM_EXPORT(rt_device_close);
295295/**
296296 * @brief This function will read some data from a device.
297297 *
298- * @param dev the pointer of device driver structure.
298+ * @param dev is the pointer of device driver structure.
299299 *
300- * @param pos the position of reading.
300+ * @param pos is the position when reading.
301301 *
302- * @param buffer the data buffer to save read data.
302+ * @param buffer is a data buffer to save the read data.
303303 *
304- * @param size the size of buffer.
304+ * @param size is the size of buffer.
305305 *
306306 * @return the actually read size on successful, otherwise negative returned.
307307 *
@@ -337,13 +337,13 @@ RTM_EXPORT(rt_device_read);
337337/**
338338 * @brief This function will write some data to a device.
339339 *
340- * @param dev the pointer of device driver structure.
340+ * @param dev is the pointer of device driver structure.
341341 *
342- * @param pos the position of written .
342+ * @param pos is the position when writing .
343343 *
344- * @param buffer the data buffer to be written to device.
344+ * @param buffer is the data buffer to be written to device.
345345 *
346- * @param size the size of buffer.
346+ * @param size is the size of buffer.
347347 *
348348 * @return the actually written size on successful, otherwise negative returned.
349349 *
@@ -379,11 +379,11 @@ RTM_EXPORT(rt_device_write);
379379/**
380380 * @brief This function will perform a variety of control functions on devices.
381381 *
382- * @param dev the pointer of device driver structure.
382+ * @param dev is the pointer of device driver structure.
383383 *
384- * @param cmd the command sent to device.
384+ * @param cmd is the command sent to device.
385385 *
386- * @param arg the argument of command.
386+ * @param arg is the argument of command.
387387 *
388388 * @return the result, -RT_ENOSYS for failed.
389389 */
@@ -406,11 +406,11 @@ RTM_EXPORT(rt_device_control);
406406 * @brief This function will set the reception indication callback function. This callback function
407407 * is invoked when this device receives data.
408408 *
409- * @param dev the pointer of device driver structure.
409+ * @param dev is the pointer of device driver structure.
410410 *
411- * @param rx_ind the indication callback function.
411+ * @param rx_ind is the indication callback function.
412412 *
413- * @return RT_EOK.
413+ * @return RT_EOK
414414 */
415415rt_err_t
416416rt_device_set_rx_indicate (rt_device_t dev ,
@@ -426,14 +426,14 @@ rt_device_set_rx_indicate(rt_device_t dev,
426426RTM_EXPORT (rt_device_set_rx_indicate );
427427
428428/**
429- * @brief This function will set the indication callback function when device has
430- * written data to physical hardware.
429+ * @brief This function will set a callback function. The callback function
430+ * will be called when device has written data to physical hardware.
431431 *
432- * @param dev the pointer of device driver structure.
432+ * @param dev is the pointer of device driver structure.
433433 *
434- * @param tx_done the indication callback function.
434+ * @param tx_done is the indication callback function.
435435 *
436- * @return RT_EOK.
436+ * @return RT_EOK
437437 */
438438rt_err_t
439439rt_device_set_tx_complete (rt_device_t dev ,
0 commit comments