summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-11-29 16:58:12 +0700
committerhathach <[email protected]>2012-11-29 16:58:12 +0700
commit2dd9501f37b8e2b2fdfa43b12469498646ae3fe5 (patch)
treedd102e40841da02a0dfc05c90a449774f7f8f876 /tinyusb
parentb8b92e120220ee19f623809673323344e257bd4b (diff)
update doxygen
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/class/hid.h33
-rw-r--r--tinyusb/device/dcd.h23
-rw-r--r--tinyusb/host/hcd.h23
3 files changed, 75 insertions, 4 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index 74ce21278..daf7e6486 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -35,6 +35,19 @@
* This file is part of the tiny usb stack.
*/
+/** \file
+ * \brief HID Class Driver
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_TinyUSB
+ * \addtogroup Group_ClassDriver Class Driver
+ * @{
+ * \defgroup Group_HID Human Interface Device
+ * @{
+ */
+
#ifndef _TUSB_HID_H_
#define _TUSB_HID_H_
@@ -43,7 +56,8 @@
#include "device/dcd.h"
-/** \brief Standard HID Boot Protocol Mouse Report.
+/** \struct USB_HID_MouseReport_t
+ * \brief Standard HID Boot Protocol Mouse Report.
*
* Type define for a standard Boot Protocol Mouse report
*/
@@ -54,7 +68,8 @@ typedef PRE_PACK struct
int8_t Y; /**< Current delta Y movement on the mouse. */
} POST_PACK USB_HID_MouseReport_t;
-/** \brief Standard HID Boot Protocol Keyboard Report.
+/** \struct USB_HID_KeyboardReport_t
+ * \brief Standard HID Boot Protocol Keyboard Report.
*
* Type define for a standard Boot Protocol Keyboard report
*/
@@ -65,7 +80,9 @@ typedef PRE_PACK struct
uint8_t KeyCode[6]; /**< Key codes of the currently pressed keys. */
} POST_PACK USB_HID_KeyboardReport_t;
-/* Button codes for HID mouse */
+/** \enum USB_HID_MOUSE_BUTTON_CODE
+ * \brief Button codes for HID mouse
+ */
enum USB_HID_MOUSE_BUTTON_CODE
{
HID_MOUSEBUTTON_RIGHT = 0,
@@ -73,7 +90,9 @@ enum USB_HID_MOUSE_BUTTON_CODE
HID_MOUSEBUTTON_MIDDLE = 2
};
-/* KB modifier codes for HID KB */
+/** \enum USB_HID_KB_KEYMODIFIER_CODE
+ * \brief KB modifier codes for HID KB
+ */
enum USB_HID_KB_KEYMODIFIER_CODE
{
HID_KEYMODIFIER_LEFTCTRL = 0,
@@ -86,6 +105,9 @@ enum USB_HID_KB_KEYMODIFIER_CODE
HID_KEYMODIFIER_RIGHTGUI
};
+/** \enum USB_HID_LOCAL_CODE
+ * \brief Local Country code for HID
+ */
enum USB_HID_LOCAL_CODE
{
HID_Local_NotSupported = 0,
@@ -141,3 +163,6 @@ TUSB_Error_t usb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y);
#endif
#endif /* _TUSB_HID_H__ */
+
+/// @}
+/// @}
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h
index 0e6c0bd99..aefdaede1 100644
--- a/tinyusb/device/dcd.h
+++ b/tinyusb/device/dcd.h
@@ -35,6 +35,19 @@
* This file is part of the tiny usb stack.
*/
+/** \file
+ * \brief Device Controller Driver
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_TinyUSB
+ * \defgroup Group_DCD Device Controller Driver
+ * \brief Device Controller Driver
+ *
+ * @{
+ */
+
#ifndef _TUSB_DCD_H_
#define _TUSB_DCD_H_
@@ -51,6 +64,14 @@
extern "C" {
#endif
+/** \brief Initialize DCD
+ *
+ * \param[in] para1
+ * \param[out] para2
+ * \return Error Code of the \ref TUSB_ERROR enum
+ * \note
+ */
+
TUSB_Error_t dcd_init() ATTR_WARN_UNUSED_RESULT;
#ifdef __cplusplus
@@ -58,3 +79,5 @@ TUSB_Error_t dcd_init() ATTR_WARN_UNUSED_RESULT;
#endif
#endif /* _TUSB_DCD_H_ */
+
+/// @}
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index 64bf28205..d807341ec 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -35,6 +35,19 @@
* This file is part of the tiny usb stack.
*/
+/** \file
+ * \brief Host Controller Driver
+ *
+ * \note TBD
+ */
+
+/** \ingroup Group_TinyUSB
+ * \defgroup Group_HCD Host Controller Driver
+ * \brief Host Controller Driver
+ *
+ * @{
+ */
+
#ifndef _TUSB_HCD_H_
#define _TUSB_HCD_H_
@@ -44,6 +57,14 @@
extern "C" {
#endif
+/** \brief Initialize HCD
+*
+* \param[in] para1
+* \param[out] para2
+* \return Error Code of the \ref TUSB_ERROR enum
+* \note
+*/
+
TUSB_Error_t hcd_init() ATTR_WARN_UNUSED_RESULT;
#ifdef __cplusplus
@@ -51,3 +72,5 @@ TUSB_Error_t hcd_init() ATTR_WARN_UNUSED_RESULT;
#endif
#endif /* _TUSB_HCD_H_ */
+
+/// @}