summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-27 12:18:01 +0700
committerhathach <[email protected]>2013-01-27 12:18:01 +0700
commit5feb1c90b41b2da4667b9e1f1fde069b6e1bfdcc (patch)
tree1f5cc4f36ffdb402b4a61c28aebafba6dedc3f6b /tinyusb/host
parentd286c957655d432424c8a7ff509bd040fd773572 (diff)
add class_hid_keyboard_init and test code
add define _TINY_USB_SOURCE_FILE_ to hide internal API from application
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/usbd_host.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/tinyusb/host/usbd_host.h b/tinyusb/host/usbd_host.h
index 26e0b2ccf..8fb76a5a9 100644
--- a/tinyusb/host/usbd_host.h
+++ b/tinyusb/host/usbd_host.h
@@ -55,8 +55,14 @@
extern "C" {
#endif
+//--------------------------------------------------------------------+
+// INCLUDE
+//--------------------------------------------------------------------+
#include "hcd.h"
+//--------------------------------------------------------------------+
+// MACRO CONSTANT TYPEDEF
+//--------------------------------------------------------------------+
enum {
TUSB_FLAGS_CLASS_UNSPECIFIED = BIT_(0) , ///< 0
TUSB_FLAGS_CLASS_AUDIO = BIT_(1) , ///< 1
@@ -116,10 +122,11 @@ typedef enum {
PIPE_STATUS_BUSY,
PIPE_STATUS_COMPLETE
} pipe_status_t;
+
+typedef uint32_t tusb_handle_device_t;
//--------------------------------------------------------------------+
-// Structures & Types
+// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
-typedef uint32_t tusb_handle_device_t;
//--------------------------------------------------------------------+
// APPLICATION API
@@ -129,13 +136,16 @@ void tusbh_device_mounted_cb (tusb_error_t const error, tusb_handle_devi
tusb_error_t tusbh_configuration_set (tusb_handle_device_t const device_hdl, uint8_t const configure_number);
-// TODO hiding from application include
//--------------------------------------------------------------------+
-// CLASS API
+// CLASS-USBD API
//--------------------------------------------------------------------+
+#ifdef _TINY_USB_SOURCE_FILE_
+
bool usbh_device_is_plugged(tusb_handle_device_t const device_hdl);
pipe_status_t usbh_pipe_status_get(pipe_handle_t pipe_hdl);
+#endif
+
#ifdef __cplusplus
}
#endif