mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-25 14:22:40 +02:00
Use PACKED for usb_endpoint_descriptor and usb_config_descriptor.
This commit is contained in:
parent
b2bee550ff
commit
ba68e198db
@ -26,7 +26,7 @@ struct usb_endpoint_descriptor {
|
|||||||
uint8_t bmAttributes;
|
uint8_t bmAttributes;
|
||||||
uint16_t wMaxPacketSize;
|
uint16_t wMaxPacketSize;
|
||||||
uint8_t bInterval;
|
uint8_t bInterval;
|
||||||
};
|
} PACKED;
|
||||||
|
|
||||||
/// Imported from libusb, with some adjustments.
|
/// Imported from libusb, with some adjustments.
|
||||||
struct usb_interface_descriptor {
|
struct usb_interface_descriptor {
|
||||||
@ -69,7 +69,7 @@ struct usb_config_descriptor {
|
|||||||
uint8_t iConfiguration;
|
uint8_t iConfiguration;
|
||||||
uint8_t bmAttributes;
|
uint8_t bmAttributes;
|
||||||
uint8_t MaxPower;
|
uint8_t MaxPower;
|
||||||
};
|
} PACKED;
|
||||||
|
|
||||||
/// Imported from libusb, with some adjustments.
|
/// Imported from libusb, with some adjustments.
|
||||||
struct usb_ss_endpoint_companion_descriptor {
|
struct usb_ss_endpoint_companion_descriptor {
|
||||||
|
Loading…
Reference in New Issue
Block a user