internal WinHidDevice(UsbApiBase usbApi,
                       SafeFileHandle usbHandle,
                       string devicePath) 
     : base(usbApi, usbHandle)
 {
     mDevicePath = devicePath;
     mSafeDevHandle = usbHandle;
 }
		internal MacUsbDevice(UsbApiBase usbApi,
							 SafeHandle handle,
							 string devicePath)
            : base(usbApi, handle)
        {
			mDevicePath = devicePath;
			mSafeDevHandle = handle;
		}
Пример #3
0
 internal WinUsbDevice(UsbApiBase usbApi,
     SafeFileHandle usbHandle,
     SafeHandle handle,
     string devicePath)
     : base(usbApi, handle)
 {
     mDevicePath = devicePath;
     mSafeDevHandle = usbHandle;
     mPowerPolicies = new PowerPolicies(this);
 }
Пример #4
0
 internal UsbEndpointBase(UsbDevice usbDevice, byte epNum, EndpointType endpointType)
 {
     mUsbDevice = usbDevice;
     mUsbApi = mUsbDevice.mUsbApi;
     mUsbHandle = mUsbDevice.Handle;
     mEpNum = epNum;
     mEndpointType = endpointType;
     if ((mEpNum & 0x80) > 0)
     {
         mPipeTransferSubmit = ReadPipe;
     }
     else
         mPipeTransferSubmit = WritePipe;
 }
Пример #5
0
 internal UsbDevice(UsbApiBase usbApi, SafeHandle usbHandle)
 {
     mUsbApi = usbApi;
     mUsbHandle = usbHandle;
     mActiveEndpoints = new UsbEndpointList();
 }
Пример #6
0
 internal LibUsbDevice(UsbApiBase api, SafeHandle usbHandle, string deviceFilename)
     : base(api, usbHandle)
 {
     mDeviceFilename = deviceFilename;
 }