diff options
| author | hathach <[email protected]> | 2019-07-12 00:12:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-07-12 00:12:14 +0700 |
| commit | e74aa41552798ff7955e68fe39ac58826d4fab6e (patch) | |
| tree | 9e6e88e3826dd1e329bfc00021e120a543060a5d /src/common | |
| parent | 92134b5ef24b430b41d863399eae0528d349aec1 (diff) | |
added tud_descriptor_bos_cb(), add support for BOS get descriptor
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 326c20cda..f7a1fc221 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -253,6 +253,14 @@ typedef struct TU_ATTR_PACKED uint8_t bNumConfigurations ; ///< Number of possible configurations.
} tusb_desc_device_t;
+typedef struct TU_ATTR_PACKED
+{
+ uint8_t bLength ; ///< Size of this descriptor in bytes
+ uint8_t bDescriptorType ; ///< CONFIGURATION Descriptor Type
+ uint16_t wTotalLength ; ///< Total length of data returned for this descriptor
+ uint8_t bNumDeviceCaps ; ///< Number of device capability descriptors in the BOS
+} tusb_desc_bos_t;
+
/// USB Standard Configuration Descriptor (section 9.6.1 table 9-10) */
typedef struct TU_ATTR_PACKED
{
|
