Beispiel #1
0
        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);
        }
Beispiel #2
0
 /// <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, "");
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 /// <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, "");
 }
Beispiel #5
0
 /// <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);
 }