summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-12 00:12:14 +0700
committerhathach <[email protected]>2019-07-12 00:12:14 +0700
commite74aa41552798ff7955e68fe39ac58826d4fab6e (patch)
tree9e6e88e3826dd1e329bfc00021e120a543060a5d /src/common
parent92134b5ef24b430b41d863399eae0528d349aec1 (diff)
added tud_descriptor_bos_cb(), add support for BOS get descriptor
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_types.h8
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
{