summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
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