summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_types.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index a462b498f..7703ebb7b 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -427,13 +427,17 @@ typedef struct TU_ATTR_PACKED
uint8_t bLength;
uint8_t bDescriptorType;
- struct TU_ATTR_PACKED {
- uint8_t bitCanDnload : 1;
- uint8_t bitCanUpload : 1;
- uint8_t bitManifestationTolerant : 1;
- uint8_t bitWillDetach : 1;
- uint8_t reserved : 4;
- } bmAttributes;
+ union {
+ struct TU_ATTR_PACKED {
+ uint8_t bitCanDnload : 1;
+ uint8_t bitCanUpload : 1;
+ uint8_t bitManifestationTolerant : 1;
+ uint8_t bitWillDetach : 1;
+ uint8_t reserved : 4;
+ } bmAttributes;
+
+ uint8_t bAttributes;
+ };
uint16_t wDetachTimeOut;
uint16_t wTransferSize;