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:
Andrei Emeltchenko 2018-05-31 16:26:58 +03:00 committed by Anas Nashif
commit c1724f65bf
6 changed files with 142 additions and 21 deletions

View file

@ -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_ */