diff options
| author | Ha Thach <[email protected]> | 2020-04-16 00:09:15 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-16 00:09:15 +0700 |
| commit | 61104297d50e5999743150d857bc8d63ecad076a (patch) | |
| tree | f103641028d5ef829550f67e79393ab963ee42b0 /src/common | |
| parent | 4ad65342e59b7651c096f0eb6d4f5429f7f31d20 (diff) | |
| parent | b03b9eb93991c561610a01c379154e7db55e9f4b (diff) | |
Merge pull request #342 from hathach/class-driver-id
add subclass and protocol for matching driver id
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 7 |
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, |
