added tud_descriptor_bos_cb(), add support for BOS get descriptor

This commit is contained in:
hathach
2019-07-12 00:12:14 +07:00
parent 92134b5ef2
commit e74aa41552
3 changed files with 29 additions and 1 deletions

View File

@@ -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
{