From 528b17c9b5dc82fefe31ec73f9301c9533f43bfd Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 28 Nov 2018 17:11:11 -0500 Subject: [PATCH] Added usb_config_descriptor in usb.h. --- nx/include/switch/services/usb.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nx/include/switch/services/usb.h b/nx/include/switch/services/usb.h index 477e2bb1..7dba91c9 100644 --- a/nx/include/switch/services/usb.h +++ b/nx/include/switch/services/usb.h @@ -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;