private void _constructor(string vid, string pid, string serialnumber) { this.usbVID = vid; this.usbPID = pid; this.deviceSN = serialnumber; this.usbdevice = new USB.HIDUSBDevice(this.usbVID, this.usbPID, this.deviceSN); }
/// <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 USB.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 USB.HIDUSBDevice(this.usbVID, this.usbPID); }