Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // USB Device
- static const struct usb_device_descriptor dev = {
- .bLength = USB_DT_DEVICE_SIZE, // Length of this descriptor.
- .bDescriptorType = USB_DT_DEVICE, // This is a Device Descriptor.
- .bcdUSB = 0x0210, // USB Version 2.1. Need to handle special requests e.g. BOS.
- .bDeviceClass = USB_CLASS_MISCELLANEOUS, // Miscellaneous Class. For composite device, let host probe the interfaces.
- .bDeviceSubClass = 2, // Miscellaneous Common Class
- .bDeviceProtocol = 1, // Use Interface Association Descriptor
- .bMaxPacketSize0 = 64, // USB packet size
- .idVendor = USB_VID, // Official USB Vendor ID
- .idProduct = USB_PID, // Official USB Product ID
- .bcdDevice = 0x0220, // Device Release number 2.2
- .iManufacturer = USB_STRINGS_MANUFACTURER, // Name of maufacturer
- .iProduct = USB_STRINGS_PRODUCT, // Name of product
- .iSerialNumber = USB_STRINGS_SERIAL_NUMBER, // Serial number
- .bNumConfigurations = 1, // How many configurations we support
- };
Add Comment
Please, Sign In to add comment