usb: Begun implementing support for sending the microsoft OS descriptor set structures

This commit is contained in:
dragonmux
2022-08-11 10:12:17 +01:00
committed by Piotr Esden-Tempski
parent 9e0dbfc137
commit 9efcb120f7
4 changed files with 59 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ LGPL License Terms @ref lgpl_license
#ifndef __MICROSOFT_H
#define __MICROSOFT_H
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/bos.h>
enum microsoft_req {
@@ -96,6 +97,9 @@ typedef struct __attribute__((packed)) microsoft_os_descriptor_set_header {
#define MICROSOFT_OS_DESCRIPTOR_SET_HEADER_SIZE 10U
extern void microsoft_os_register_descriptor_sets(usbd_device *dev,
const microsoft_os_descriptor_set_header *sets, uint8_t num_sets);
#endif
/**@}*/