public IrixiMotionController(string DeviceSN = "")
        {
            // Generate the instance of the state report object
            HidReport      = new DeviceStateReport();
            FirmwareInfo   = new FimwareInfo();
            PCA9534Info    = new PCA9534Info();
            TotalAxes      = -1;
            SerialNumber   = DeviceSN;
            AxisCollection = new ObservableCollection <Axis>();

            //BindingOperations.EnableCollectionSynchronization(AxisCollection, _lock);
            hidPort = new HIDUSBDevice(VID, PID, DeviceSN);
        }
Example #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)
 {
     usbVID    = vid;
     usbdevice = new HIDUSBDevice(usbVID, "");
 }
Example #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)
 {
     usbVID    = vid;
     usbPID    = pid;
     usbdevice = new HIDUSBDevice(usbVID, usbPID);
 }
        /// <summary>
        /// Read the controllers' serial number and output as a string list
        /// </summary>
        /// <returns></returns>
        public static string[] GetDevicesList()
        {
            HIDUSBDevice hid = new HIDUSBDevice(PID, VID);

            return(hid.GetDevicesList().ToArray());
        }