diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 12:03:12 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 12:03:12 +0200 |
commit | 162079d86d873c9eb70fd486890c670ce4043c33 (patch) | |
tree | 4c3c103b62c063ee5570b174db950c26247d8f57 /usb | |
parent | 07fd946dd7723b6f133dd6b288221b8a18e1e49e (diff) |
Added bRefresh and bSynchAddress fields to endpoint descriptor.
Diffstat (limited to 'usb')
-rw-r--r-- | usb/descriptor.h | 10 |
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 }; } |