usb_desc_data.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /***************************************************************************
  2. AUTOMATICALLY GENERATED by USBDescriptorKitchen (0.3)
  3. When editing, make sure you keep the indentation right
  4. and use an editor that doesn't mess around with the linefeeds.
  5. See http://github.com/zonque/USBDescriptorKitchen/
  6. for more information about the tool that was used to generate this file.
  7. ***************************************************************************/
  8. static const char Device_1[] = {
  9. /* Device*/
  10. 0x12, /* bLength (Size of this descriptor in bytes) */
  11. 0x01, /* bDescriptorType (DEVICE Descriptor Type) */
  12. 0x00, 0x02, /* bcdUSB (USB Specification Release Number in Binary-Coded Decimal) ("2.0") (512) */
  13. 0x00, /* bDeviceClass (Class code (assigned by the USB-IF).) ("Defined at interface level") */
  14. 0x00, /* bDeviceSubClass (Subclass code (assigned by the USB-IF).) */
  15. 0x00, /* bDeviceProtocol (Protocol code (assigned by the USB-IF).) */
  16. 0x40, /* bMaxPacketSize0 (Maximum packet size for endpoint zero) ("64") */
  17. 0x50, 0x1d, /* idVendor (Vendor ID (assigned by the USB-IF)) (7504) */
  18. 0xe1, 0xe1, /* idProduct (Product ID (assigned by the manufacturer)) (57825) */
  19. 0x00, 0x01, /* bcdDevice (Device release number in binary-coded decimal) (256) */
  20. 0x01, /* iManufacturer */
  21. 0x02, /* iProduct */
  22. 0x03, /* iSerialNumber */
  23. 0x01, /* bNumConfigurations (Number of possible configurations) */
  24. };
  25. static const char Configuration_1[] = {
  26. /* Configuration*/
  27. 0x09, /* bLength (Size of this descriptor in bytes) */
  28. 0x02, /* bDescriptorType (CONFIGURATION Descriptor Type) */
  29. 0x27, 0x00, /* wTotalLength (Total length of data returned for this configuration) (39) */
  30. 0x01, /* bNumInterfaces (Number of interfaces supported by this configuration) */
  31. 0x01, /* bConfigurationValue (Value to use as an argument to the SetConfiguration() request to select this configuration) */
  32. 0x04, /* iConfiguration (Index of string descriptor describing this configuration) */
  33. 0x80, /* bmAttributes (Configuration characteristics) ('Remote Wakeup' = 0, 'Self-powered' = 0, 'Reserved (set to one)' = 1) */
  34. 0x32, /* bMaxPower (Maximum power consumption of the USB, device. Expressed in 2 mA units) */
  35. /* Interface*/
  36. 0x09, /* bLength (Size of this descriptor in bytes) */
  37. 0x04, /* bDescriptorType (INTERFACE Descriptor Type) */
  38. 0x00, /* bInterfaceNumber (Number of this interface. Zero-based value.) */
  39. 0x00, /* bAlternateSetting (Value used to select this alternate setting) */
  40. 0x03, /* bNumEndpoints (Number of endpoints used by this interface) */
  41. 0xff, /* bInterfaceClass (Class code (assigned by the USB-IF).) ("Vendor specific") */
  42. 0x00, /* bInterfaceSubClass (Subclass code (assigned by the USB-IF).) ("0") */
  43. 0x00, /* bInterfaceProtocol (Protocol code (assigned by the USB).) */
  44. 0x02, /* iInterface (Index of string descriptor describing this interface) */
  45. /* Endpoint*/
  46. 0x07, /* bLength (Size of this descriptor in bytes) */
  47. 0x05, /* bDescriptorType (ENDPOINT descriptor) */
  48. 0x01, /* bEndpointAddress ('Endpoint Number' = 1, 'Direction' = 0) */
  49. 0x05, /* bEndpointAttributes ('Transfer Type' = 1, 'Synchronization Type' = 1, 'Usage Type' = 0) */
  50. 0xb0, 0x01, /* wMaxPacketSize (Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected.) (432) */
  51. 0x01, /* bInterval (Interval for polling endpoint for data transfers. Expressed in frames or microframes depending on the device operating speed (i.e., either 1 millisecond or 125 us units)) */
  52. /* Endpoint*/
  53. 0x07, /* bLength (Size of this descriptor in bytes) */
  54. 0x05, /* bDescriptorType (ENDPOINT descriptor) */
  55. 0x81, /* bEndpointAddress ('Endpoint Number' = 1, 'Direction' = 1) */
  56. 0x11, /* bEndpointAttributes ('Transfer Type' = 1, 'Synchronization Type' = 0, 'Usage Type' = 1) */
  57. 0x08, 0x00, /* wMaxPacketSize (Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected.) (8) */
  58. 0x03, /* bInterval (Interval for polling endpoint for data transfers. Expressed in frames or microframes depending on the device operating speed (i.e., either 1 millisecond or 125 us units)) */
  59. /* Endpoint*/
  60. 0x07, /* bLength (Size of this descriptor in bytes) */
  61. 0x05, /* bDescriptorType (ENDPOINT descriptor) */
  62. 0x82, /* bEndpointAddress ('Endpoint Number' = 2, 'Direction' = 1) */
  63. 0x05, /* bEndpointAttributes ('Transfer Type' = 1, 'Synchronization Type' = 1, 'Usage Type' = 0) */
  64. 0xb0, 0x01, /* wMaxPacketSize (Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected.) (432) */
  65. 0x01, /* bInterval (Interval for polling endpoint for data transfers. Expressed in frames or microframes depending on the device operating speed (i.e., either 1 millisecond or 125 us units)) */
  66. };
  67. static const char StringZero_1[] = {
  68. /* StringZero*/
  69. 0x04, /* bLength (Size of this descriptor in bytes) */
  70. 0x03, /* bDescriptorType (STRING Descriptor Type) */
  71. 0x09, 0x04, /* wLANGID(0) ("English (United States)") (1033) */
  72. };
  73. static const char String_1[] = {
  74. /* String*/
  75. 0x10, /* bLength (Size of this descriptor in bytes) */
  76. 0x03, /* bDescriptorType (STRING Descriptor Type) */
  77. 0x6f, 0x00, 0x73, 0x00, 0x6d, 0x00, 0x6f, 0x00, 0x63, 0x00, 0x6f, 0x00, 0x6d, 0x00, /* bString (0) */
  78. };
  79. static const char String_2[] = {
  80. /* String*/
  81. 0x22, /* bLength (Size of this descriptor in bytes) */
  82. 0x03, /* bDescriptorType (STRING Descriptor Type) */
  83. 0x55, 0x00, 0x53, 0x00, 0x42, 0x00, 0x20, 0x00, 0x45, 0x00, 0x31, 0x00, 0x20, 0x00, 0x69, 0x00,
  84. 0x6e, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x66, 0x00, 0x61, 0x00, 0x63, 0x00, 0x65, 0x00,
  85. /* bString (0) */
  86. };
  87. static const char String_3[] = {
  88. /* String*/
  89. 0x12, /* bLength (Size of this descriptor in bytes) */
  90. 0x03, /* bDescriptorType (STRING Descriptor Type) */
  91. 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00,
  92. /* bString (0) */
  93. };
  94. static const char String_4[] = {
  95. /* String*/
  96. 0x0a, /* bLength (Size of this descriptor in bytes) */
  97. 0x03, /* bDescriptorType (STRING Descriptor Type) */
  98. 0x4d, 0x00, 0x61, 0x00, 0x69, 0x00, 0x6e, 0x00, /* bString ("Main") (0) */
  99. };
  100. static const char *Devices[] = {
  101. Device_1,
  102. };
  103. static const char *Configurations[] = {
  104. Configuration_1,
  105. };
  106. static const char *Strings[] = {
  107. String_1,
  108. String_2,
  109. String_3,
  110. String_4,
  111. };
  112. static const char *StringZeros[] = {
  113. StringZero_1,
  114. };