summaryrefslogtreecommitdiff
path: root/usb
diff options
context:
space:
mode:
Diffstat (limited to 'usb')
-rw-r--r--usb/descriptor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/usb/descriptor.h b/usb/descriptor.h
index f5f105c..a45b04d 100644
--- a/usb/descriptor.h
+++ b/usb/descriptor.h
@@ -146,13 +146,17 @@ struct Endpoint_desc {
uint8_t bmAttributes;
uint16_t wMaxPacketSize;
uint8_t bInterval;
+ uint8_t bRefresh;
+ uint8_t bSynchAddress;
} __attribute__((packed));
constexpr Endpoint_desc endpoint_desc(
uint8_t bEndpointAddress,
uint8_t bmAttributes,
uint16_t wMaxPacketSize,
- uint8_t bInterval
+ uint8_t bInterval,
+ uint8_t bRefresh = 0,
+ uint8_t bSynchAddress = 0
) {
return {
@@ -161,7 +165,9 @@ constexpr Endpoint_desc endpoint_desc(
bEndpointAddress,
bmAttributes,
wMaxPacketSize,
- bInterval
+ bInterval,
+ bRefresh,
+ bSynchAddress
};
}