UsbInterfaceDescriptor constructor

UsbInterfaceDescriptor({
  1. required int bLength,
  2. required int bDescriptorType,
  3. required int bInterfaceNumber,
  4. required int bAlternateSetting,
  5. required int bNumEndpoints,
  6. required int bInterfaceClass,
  7. required int bInterfaceSubClass,
  8. required int bInterfaceProtocol,
  9. required int iInterface,
  10. required List<UsbEndpointDescriptor> endpoint,
  11. Uint8List? extra,
})

Creates the standard USB interface descriptor.

Implementation

UsbInterfaceDescriptor({
  required this.bLength,
  required this.bDescriptorType,
  required this.bInterfaceNumber,
  required this.bAlternateSetting,
  required this.bNumEndpoints,
  required this.bInterfaceClass,
  required this.bInterfaceSubClass,
  required this.bInterfaceProtocol,
  required this.iInterface,
  required this.endpoint,
  this.extra,
});