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:
parent
3726eb8950
commit
528b17c9b5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user