/// <summary> /// Initializes a new instance of the <see cref="USBInterface"/> class. /// </summary> /// <param name="vid">The vendor id of the USB device (e.g. vid_06ba).</param> public USBInterface(string vid) { this.usbVID = vid; this.usbdevice = new HIDUSBDevice(this.usbVID, ""); }
/// <summary> /// Initializes a new instance of the <see cref="USBInterface"/> class. /// </summary> /// <param name="vid">The vendor id of the USB device (e.g. vid_06ba)</param> /// <param name="pid">The product id of the USB device (e.g. pid_ffff)</param> public USBInterface(string vid, string pid) { this.usbVID = vid; this.usbPID = pid; this.usbdevice = new HIDUSBDevice(this.usbVID, this.usbPID); }