usb: bos: Add USB BOS descriptors API
Add API for USB BOS Descriptors. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f07275e6e6
commit
c1724f65bf
6 changed files with 142 additions and 21 deletions
|
@ -198,25 +198,4 @@ struct usb_ep_descriptor {
|
|||
u8_t bInterval;
|
||||
} __packed;
|
||||
|
||||
/** Binary Device Object Store (BOS) */
|
||||
|
||||
#define USB_BOS_CAPABILITY_PLATFORM 0x05
|
||||
|
||||
/** BOS Capability Descriptor */
|
||||
struct usb_bos_platform_descriptor {
|
||||
u8_t bLength;
|
||||
u8_t bDescriptorType;
|
||||
u8_t bDevCapabilityType;
|
||||
u8_t bReserved;
|
||||
u8_t PlatformCapabilityUUID[16];
|
||||
} __packed;
|
||||
|
||||
/** BOS Descriptor */
|
||||
struct usb_bos_descriptor {
|
||||
u8_t bLength;
|
||||
u8_t bDescriptorType;
|
||||
u16_t wTotalLength;
|
||||
u8_t bNumDeviceCaps;
|
||||
} __packed;
|
||||
|
||||
#endif /* USB_COMMON_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue