1
0
mirror of https://github.com/switchbrew/libnx.git synced 2025-07-25 19:42:28 +02:00

Added usb_config_descriptor in usb.h.

This commit is contained in:
yellows8 2018-11-28 17:11:11 -05:00
parent 3726eb8950
commit 528b17c9b5

View File

@ -63,6 +63,18 @@ struct usb_device_descriptor {
uint8_t bNumConfigurations;
};
/// Imported from libusb, with some adjustments.
struct usb_config_descriptor {
uint8_t bLength;
uint8_t bDescriptorType;
uint16_t wTotalLength;
uint8_t bNumInterfaces;
uint8_t bConfigurationValue;
uint8_t iConfiguration;
uint8_t bmAttributes;
uint8_t MaxPower;
};
/// Imported from libusb, with some adjustments.
struct usb_ss_endpoint_companion_descriptor {
uint8_t bLength;