summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-14 18:00:59 +0700
committerhathach <[email protected]>2020-04-14 18:00:59 +0700
commit593fe154eca8e70b02beb0e5a2872e690ae74296 (patch)
treecb034c310f619c5388aa595c28a1ec1ef35c575a /src/common
parent57ffa94a5251c2b28cddf63b1897282988019e4d (diff)
adding subclass & protocol to class driver structure
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index c37c19bad..70d0db942 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -139,6 +139,7 @@ typedef enum
TUSB_REQ_RCPT_OTHER
} tusb_request_recipient_t;
+// https://www.usb.org/defined-class-codes
typedef enum
{
TUSB_CLASS_UNSPECIFIED = 0 ,
@@ -178,6 +179,12 @@ typedef enum
typedef enum
{
+ APP_SUBCLASS_USBTMC = 0x03,
+ APP_SUBCLASS_DFU_RUNTIME = 0x01
+} app_subclass_type_t;
+
+typedef enum
+{
DEVICE_CAPABILITY_WIRELESS_USB = 0x01,
DEVICE_CAPABILITY_USB20_EXTENSION = 0x02,
DEVICE_CAPABILITY_SUPERSPEED_USB = 0x03,