diff options
| author | hathach <[email protected]> | 2019-07-04 02:09:12 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-04 02:09:12 +0700 |
| commit | 2dd8dba4a7dc7b288a94054080932513ab1e98e3 (patch) | |
| tree | 9759fd0cdf4fab9eb4a7674c37e1ea6aa61f1927 /src/common | |
| parent | 393492823ce037a2e46d367d61fad1235859af2e (diff) | |
| parent | 3ec279b424ea463577420e75db54deebf409be2b (diff) | |
Merge pull request #84 from hathach/develop
better support device MIDI
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 34ad26f15..fd6e435e6 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -72,18 +72,24 @@ typedef enum /// USB Descriptor Types (section 9.4 table 9-5)
typedef enum
{
- TUSB_DESC_DEVICE = 0x01 ,
- TUSB_DESC_CONFIGURATION = 0x02 ,
- TUSB_DESC_STRING = 0x03 ,
- TUSB_DESC_INTERFACE = 0x04 ,
- TUSB_DESC_ENDPOINT = 0x05 ,
- TUSB_DESC_DEVICE_QUALIFIER = 0x06 ,
- TUSB_DESC_OTHER_SPEED_CONFIG = 0x07 ,
- TUSB_DESC_INTERFACE_POWER = 0x08 ,
- TUSB_DESC_OTG = 0x09 ,
- TUSB_DESC_DEBUG = 0x0A ,
- TUSB_DESC_INTERFACE_ASSOCIATION = 0x0B ,
- TUSB_DESC_CLASS_SPECIFIC = 0x24
+ TUSB_DESC_DEVICE = 0x01,
+ TUSB_DESC_CONFIGURATION = 0x02,
+ TUSB_DESC_STRING = 0x03,
+ TUSB_DESC_INTERFACE = 0x04,
+ TUSB_DESC_ENDPOINT = 0x05,
+ TUSB_DESC_DEVICE_QUALIFIER = 0x06,
+ TUSB_DESC_OTHER_SPEED_CONFIG = 0x07,
+ TUSB_DESC_INTERFACE_POWER = 0x08,
+ TUSB_DESC_OTG = 0x09,
+ TUSB_DESC_DEBUG = 0x0A,
+ TUSB_DESC_INTERFACE_ASSOCIATION = 0x0B,
+
+ // Class Specific Descriptor
+ TUSB_DESC_CS_DEVICE = 0x21,
+ TUSB_DESC_CS_CONFIGURATION = 0x22,
+ TUSB_DESC_CS_STRING = 0x23,
+ TUSB_DESC_CS_INTERFACE = 0x24,
+ TUSB_DESC_CS_ENDPOINT = 0x25,
}tusb_desc_type_t;
typedef enum
@@ -105,9 +111,9 @@ typedef enum typedef enum
{
- TUSB_REQ_FEATURE_EDPT_HALT = 0,
+ TUSB_REQ_FEATURE_EDPT_HALT = 0,
TUSB_REQ_FEATURE_REMOTE_WAKEUP = 1,
- TUSB_REQ_FEATURE_TEST_MODE = 2
+ TUSB_REQ_FEATURE_TEST_MODE = 2
}tusb_request_feature_selector_t;
typedef enum
|
