summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-11-29 17:52:57 +0700
committerhathach <[email protected]>2012-11-29 17:52:57 +0700
commit879fb21f99020bfb13a300e6e61089c7d0aa4619 (patch)
treeffdfe88408f418847e7a35d4cd12246218e1a562 /tinyusb/class/hid.h
parent2dd9501f37b8e2b2fdfa43b12469498646ae3fe5 (diff)
change license email to website
added support for cdc devices
Diffstat (limited to 'tinyusb/class/hid.h')
-rw-r--r--tinyusb/class/hid.h42
1 files changed, 36 insertions, 6 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index daf7e6486..306e122c8 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -2,12 +2,12 @@
* hid.h
*
* Created on: Nov 27, 2012
- * Author: hathach ([email protected])
+ * Author: hathach
*/
/*
* Software License Agreement (BSD License)
- * Copyright (c) 2012, hathach ([email protected])
+ * Copyright (c) 2012, hathach (tinyusb.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@@ -152,11 +152,41 @@ enum USB_HID_LOCAL_CODE
extern "C" {
#endif
-TUSB_Error_t usb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pIntfDesc, uint8_t const * const pHIDReportDesc, uint32_t ReportDescLength, uint32_t* mem_base, uint32_t* mem_size) ATTR_NON_NULL;
-TUSB_Error_t usb_hid_configured(USBD_HANDLE_T hUsb);
+/** \brief Initialize HID driver
+ *
+ * \param[in] para1
+ * \param[out] para2
+ * \return Error Code of the \ref TUSB_ERROR enum
+ * \note
+ */
+TUSB_Error_t tusb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pIntfDesc, uint8_t const * const pHIDReportDesc, uint32_t ReportDescLength, uint32_t* mem_base, uint32_t* mem_size) ATTR_NON_NULL;
+
+/** \brief Notify HID class that usb is configured
+ *
+ * \param[in] para1
+ * \param[out] para2
+ * \return Error Code of the \ref TUSB_ERROR enum
+ * \note
+ */
+TUSB_Error_t tusb_hid_configured(USBD_HANDLE_T hUsb);
-TUSB_Error_t usb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey) ATTR_NON_NULL;
-TUSB_Error_t usb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y);
+/** \brief Used by Application to send Keycode to Host
+ *
+ * \param[in] para1
+ * \param[out] para2
+ * \return Error Code of the \ref TUSB_ERROR enum
+ * \note
+ */
+TUSB_Error_t tusb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey) ATTR_NON_NULL;
+
+/** \brief
+ *
+ * \param[in] para1
+ * \param[out] para2
+ * \return Error Code of the \ref TUSB_ERROR enum
+ * \note
+ */
+TUSB_Error_t tusb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y);
#ifdef __cplusplus
}