Beispiel #1
0
        public nRFupdateControl()
        {
            usbHidPort1 = new USBHIDLib.UsbHidPort();

            // Specific device vendor and product id
            usbHidPort1.VendorId           = USB_VENDOR_ID;
            usbHidPort1.ProductId          = USB_PRODUCT_ID;
            usbHidPort1.PreferredInterface = 0x100;

            usbHidPort1.OnDataRecieved           += new USBHIDLib.DataRecievedEventHandler(usb_OnDataRecieved);
            usbHidPort1.OnSpecifiedDeviceArrived += new EventHandler(usb_OnSpecifiedDeviceArrived);
            usbHidPort1.OnSpecifiedDeviceRemoved += new EventHandler(usb_OnSpecifiedDeviceRemoved);
            usbHidPort1.OnDataSent += new EventHandler(usb_OnDataSent);
        }
        public nRFupdateControl()
        {
            usbHidPort1 = new USBHIDLib.UsbHidPort();

            // Specific device vendor and product id
            usbHidPort1.VendorId = USB_VENDOR_ID;
            usbHidPort1.ProductId = USB_PRODUCT_ID;
            usbHidPort1.PreferredInterface = 0x100;

            usbHidPort1.OnDataRecieved += new USBHIDLib.DataRecievedEventHandler(usb_OnDataRecieved);
            usbHidPort1.OnSpecifiedDeviceArrived += new EventHandler(usb_OnSpecifiedDeviceArrived);
            usbHidPort1.OnSpecifiedDeviceRemoved += new EventHandler(usb_OnSpecifiedDeviceRemoved);
            usbHidPort1.OnDataSent += new EventHandler(usb_OnDataSent);
        }