USB services: Difference between revisions

Line 123: Line 123:
Up to 4 interfaces can be used+[[#EnableInterface|enabled]].
Up to 4 interfaces can be used+[[#EnableInterface|enabled]].


Structure of the first buffer(this is similar to [http://libusb.sourceforge.net/api-1.0/structlibusb__interface__descriptor.html libusb__interface__descriptor]):
Structure of the first buffer(this is the same as [http://libusb.sourceforge.net/api-1.0/structlibusb__interface__descriptor.html libusb__interface__descriptor]):
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 134: Line 134:
| 0x2 || 0x1 || bInterfaceNumber. When 0x4, the bInterfaceNumber is automatically allocated(error will be thrown if no space). Otherwise, it's used directly and must be <=3.
| 0x2 || 0x1 || bInterfaceNumber. When 0x4, the bInterfaceNumber is automatically allocated(error will be thrown if no space). Otherwise, it's used directly and must be <=3.
|-
|-
| 0x3 || 0x1 || Must match 0x0.
| 0x3 || 0x1 || bAlternateSetting. Must match 0x0.
|-
|-
| 0x4 || 0x1 || ?
| 0x4 || 0x1 || bNumEndpoints. Ignored.
|-
|-
| 0x5 || 0x1 || bInterfaceClass
| 0x5 || 0x1 || bInterfaceClass
Line 144: Line 144:
| 0x7 || 0x1 || bInterfaceProtocol
| 0x7 || 0x1 || bInterfaceProtocol
|-
|-
| 0x8 || 0x1 || ?
| 0x8 || 0x1 || iInterface. Ignored.
|}
|}