public ScopeStrobeMemory(ByteMemoryEnum <REG> writeMemory, ScopeFpgaRom readMemory) { this.writeMemory = writeMemory; this.readMemory = readMemory; foreach (STR str in Enum.GetValues(typeof(STR))) { Registers.Add((uint)str, new BoolRegister(this, (uint)str, str.ToString())); } }
internal MAX19506Memory(ByteMemoryEnum <REG> fpgaMemory, ScopeStrobeMemory strobeMemory, ScopeFpgaRom fpgaRom) { this.fpgaSettings = fpgaMemory; this.strobeMemory = strobeMemory; this.fpgaRom = fpgaRom; foreach (MAX19506 reg in Enum.GetValues(typeof(MAX19506))) { Registers.Add((uint)reg, new ByteRegister(this, (uint)reg, reg.ToString())); } }