/// <summary>Fills a device report with parameters specific to a USB device</summary> public Usb UsbReport() { var usbReport = new Usb { Manufacturer = _dev.UsbManufacturerString, Product = _dev.UsbProductString, ProductID = _dev.UsbProductId, VendorID = _dev.UsbVendorId, Descriptors = _dev.UsbDescriptors }; return(usbReport); }
/// <summary> /// Fills a device report with parameters specific to a USB device /// </summary> /// <param name="dev">Device</param> /// <param name="report">Device report</param> /// <param name="removable">If device is removable</param> /// <param name="debug">If debug is enabled</param> public Usb UsbReport() { Usb usbReport = new Usb { Manufacturer = dev.UsbManufacturerString, Product = dev.UsbProductString, ProductID = dev.UsbProductId, VendorID = dev.UsbVendorId }; if (debug) { usbReport.Descriptors = dev.UsbDescriptors; } return(usbReport); }