Inheritance: FreebooterHost
 public EEPROMStream(LokiBootloaderHost host, byte slaveAddress, long length)
 {
     this.host            = host;
     this.slaveAddress    = slaveAddress;
     this.length          = length;
     this.readBuf         = new byte[PAGE_SIZE];
     this.readBufPosition = this.readBuf.Length;
 }
Exemple #2
0
        public void GetHidDevice()
        {
            CyHidDevice device = usbHIDDevices[VID, PID] as CyHidDevice;

            if (device != null)
            {
                channel = new HIDCommunicationsChannel(device);
                host    = new LokiBootloaderHost(channel);
                host.EnterBootloader();
                this.UseWaitCursor = true;
                readEEPROMWorker.RunWorkerAsync();
            }
            else
            {
                OnDetach();
            }
        }
Exemple #3
0
        public void GetHidDevice()
        {
            CyHidDevice device = usbHIDDevices[VID, PID] as CyHidDevice;

            if (device != null)
            {
                channel = new HIDCommunicationsChannel(device);
                host = new LokiBootloaderHost(channel);
                host.EnterBootloader();
                this.UseWaitCursor = true;
                readEEPROMWorker.RunWorkerAsync();
            }
            else
            {
                OnDetach();
            }
        }
 public EEPROMStream(LokiBootloaderHost host, byte slaveAddress, long length)
 {
     this.host = host;
     this.slaveAddress = slaveAddress;
     this.length = length;
     this.readBuf = new byte[PAGE_SIZE];
     this.readBufPosition = this.readBuf.Length;
 }