internal void AttachInterface(USBInterface usbInterface) { _interface = usbInterface; // Initialize policy now that interface is set (policy requires interface) _policy = new USBPipePolicy(_device, _interface.InterfaceIndex, _pipeInfo.PipeId); }
internal USBPipe(USBDevice device, API.WINUSB_PIPE_INFORMATION pipeInfo) { _pipeInfo = pipeInfo; _device = device; // Policy is not set until interface is attached _policy = null; }