public LinuxDevItem(string deviceFileName, byte busNumber, byte deviceAddress, MonoUsbDeviceDescriptor monoUsbDeviceDescriptor)
        {
            DeviceFileName = deviceFileName;
            BusNumber = busNumber;
            DeviceAddress = deviceAddress;

            DeviceDescriptor = new UsbDeviceDescriptor(monoUsbDeviceDescriptor);
        }
        internal UsbDeviceInfo(UsbDevice usbDevice, MonoUsbDeviceDescriptor usbDeviceDescriptor)
        {
            mUsbDevice = usbDevice;

            mDeviceDescriptor = new UsbDeviceDescriptor();
            mDeviceDescriptor.BcdDevice = usbDeviceDescriptor.BcdDevice;
            mDeviceDescriptor.BcdUsb = usbDeviceDescriptor.BcdUsb;
            mDeviceDescriptor.Class = usbDeviceDescriptor.Class;
            mDeviceDescriptor.ConfigurationCount = usbDeviceDescriptor.ConfigurationCount;
            mDeviceDescriptor.DescriptorType = usbDeviceDescriptor.DescriptorType;
            mDeviceDescriptor.Length = usbDeviceDescriptor.Length;
            mDeviceDescriptor.ManufacturerStringIndex = usbDeviceDescriptor.ManufacturerStringIndex;
            mDeviceDescriptor.MaxPacketSize0 = usbDeviceDescriptor.MaxPacketSize0;
            mDeviceDescriptor.ProductID = usbDeviceDescriptor.ProductID;
            mDeviceDescriptor.ProductStringIndex = usbDeviceDescriptor.ProductStringIndex;
            mDeviceDescriptor.Protocol = usbDeviceDescriptor.Protocol;
            mDeviceDescriptor.SerialStringIndex = usbDeviceDescriptor.SerialStringIndex;
            mDeviceDescriptor.SubClass = usbDeviceDescriptor.SubClass;
            mDeviceDescriptor.VendorID = usbDeviceDescriptor.VendorID;
        }
        private MonoUsbError GetDeviceDescriptor(out MonoUsbDeviceDescriptor monoUsbDeviceDescriptor)
        {
            MonoUsbError ec = MonoUsbError.Success;

            monoUsbDeviceDescriptor = new MonoUsbDeviceDescriptor();
            //Console.WriteLine("MonoUsbProfile:GetDeviceDescriptor");
            ec = (MonoUsbError) MonoUsbApi.GetDeviceDescriptor(mMonoUSBProfileHandle, monoUsbDeviceDescriptor);
            if (ec != MonoUsbError.Success)
            {
            #if LIBUSBDOTNET
                UsbError.Error(ErrorCode.MonoApiError, (int) ec, "GetDeviceDescriptor Failed", this);
            #endif
                monoUsbDeviceDescriptor = null;
            }
            return ec;
        }
 internal UsbDeviceDescriptor(MonoUsbDeviceDescriptor usbDeviceDescriptor)
 {
     BcdDevice = usbDeviceDescriptor.BcdDevice;
     BcdUsb = usbDeviceDescriptor.BcdUsb;
     Class = usbDeviceDescriptor.Class;
     ConfigurationCount = usbDeviceDescriptor.ConfigurationCount;
     DescriptorType = usbDeviceDescriptor.DescriptorType;
     Length = usbDeviceDescriptor.Length;
     ManufacturerStringIndex = usbDeviceDescriptor.ManufacturerStringIndex;
     MaxPacketSize0 = usbDeviceDescriptor.MaxPacketSize0;
     ProductID = usbDeviceDescriptor.ProductID;
     ProductStringIndex = usbDeviceDescriptor.ProductStringIndex;
     Protocol = usbDeviceDescriptor.Protocol;
     SerialStringIndex = usbDeviceDescriptor.SerialStringIndex;
     SubClass = usbDeviceDescriptor.SubClass;
     VendorID = usbDeviceDescriptor.VendorID;
 }