From 162079d86d873c9eb70fd486890c670ce4043c33 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 22 Sep 2012 12:03:12 +0200 Subject: Added bRefresh and bSynchAddress fields to endpoint descriptor. --- usb/descriptor.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usb') 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 }; } -- cgit v1.2.3