//master method where all memories, registers etc get defined and linked together private void InitializeMemories() { memories.Clear(); //Create memories PicMemory = new Memories.ScopePicRegisterMemory(hardwareInterface); FpgaSettingsMemory = new Memories.ByteMemoryEnum <REG>(new ScopeFpgaI2cMemory(hardwareInterface, FPGA_I2C_ADDRESS_SETTINGS)); FpgaRom = new Memories.ScopeFpgaRom(hardwareInterface, FPGA_I2C_ADDRESS_ROM); StrobeMemory = new Memories.ScopeStrobeMemory(FpgaSettingsMemory, FpgaRom); AdcMemory = new Memories.MAX19506Memory(FpgaSettingsMemory, StrobeMemory, FpgaRom); //Add them in order we'd like them in the GUI memories.Add(PicMemory); memories.Add(FpgaRom); memories.Add(StrobeMemory); memories.Add(FpgaSettingsMemory); memories.Add(AdcMemory); }
//master method where all memories, registers etc get defined and linked together private void InitializeMemories() { memories.Clear(); //Create memories PicMemory = new Memories.ScopePicRegisterMemory(hardwareInterface); FpgaSettingsMemory = new Memories.ScopeFpgaSettingsMemory(hardwareInterface); FpgaRom = new Memories.ScopeFpgaRom(hardwareInterface); StrobeMemory = new Memories.ScopeStrobeMemory(FpgaSettingsMemory, FpgaRom); AdcMemory = new Memories.MAX19506Memory(FpgaSettingsMemory, StrobeMemory, FpgaRom); //Add them in order we'd like them in the GUI memories.Add(PicMemory); memories.Add(FpgaRom); memories.Add(StrobeMemory); memories.Add(FpgaSettingsMemory); memories.Add(AdcMemory); }