Пример #1
0
 public AD9854_v2()
 {
     byte[] default_vals = {   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x64, 0x01,
                               0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 };
     write_reg = new Register8WriteDel(WriteRegister);
     registers = new Register8[40];
     for(int i=0; i<40; i++)
         registers[i] = new Register8(i.ToString(), write_reg, (byte)i, default_vals[i]);
 }
Пример #2
0
 public AD9854_v2()
 {
     byte[] default_vals = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x64, 0x01,
                             0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 };
     write_reg = new Register8WriteDel(WriteRegister);
     registers = new Register8[40];
     for (int i = 0; i < 40; i++)
     {
         registers[i] = new Register8(i.ToString(), write_reg, (byte)i, default_vals[i]);
     }
 }
Пример #3
0
 public AD9854_v2(ushort addr, ControlMode mode)
 {
     byte[] default_vals = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                             0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x64, 0x01,
                             0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 };
     write_reg = new Register8WriteDel(WriteRegister);
     registers = new Register8[40];
     for (int i = 0; i < 40; i++)
     {
         registers[i] = new Register8(i.ToString(), write_reg, (byte)i, default_vals[i]);
     }
     lpt_addr             = addr;
     current_control_mode = mode;
 }
        public HW(int addr)
        {
            Parallel.InitPortTalk();
            lpt_addr  = (ushort)addr;
            write_reg = new Register8WriteDel(UpdateRegister8);

            pio_ic1   = new Register8("pio_ic1", write_reg, new Config(PIO, PIO_IC1));
            MuteRelay = false;
            pio_ic1.SetBit(5);
            pio_ic3   = new Register8("pio_ic3", write_reg, new Config(PIO, PIO_IC3));
            GainRelay = true;
            rfe_ic7   = new Register8("rfe_ic7", write_reg, new Config(RFE, RFE_IC7));
            PABias    = false;
            rfe_ic9   = new Register8("rfe_ic9", write_reg, new Config(RFE, RFE_IC9));
            rfe_ic10  = new Register8("rfe_ic10", write_reg, new Config(RFE, RFE_IC10));
            rfe_ic11  = new Register8("rfe_ic11", write_reg, new Config(RFE, RFE_IC11));
        }
Пример #5
0
		public HW(int addr)
		{
			Parallel.InitPortTalk();
			lpt_addr = (ushort)addr;
			write_reg = new Register8WriteDel(UpdateRegister8);

			pio_ic1 = new Register8("pio_ic1", write_reg, new Config(PIO, PIO_IC1));
			MuteRelay = false;
			pio_ic1.SetBit(5);
			pio_ic3 = new Register8("pio_ic3", write_reg, new Config(PIO, PIO_IC3));
			GainRelay = true;
			rfe_ic7 = new Register8("rfe_ic7", write_reg, new Config(RFE, RFE_IC7));
			PABias = false;
			rfe_ic9 = new Register8("rfe_ic9", write_reg, new Config(RFE, RFE_IC9));
			rfe_ic10 = new Register8("rfe_ic10", write_reg, new Config(RFE, RFE_IC10));
			rfe_ic11 = new Register8("rfe_ic11", write_reg, new Config(RFE, RFE_IC11));
		}
Пример #6
0
 public AD9854_v2(ushort addr, ControlMode mode)
 {
     byte[] default_vals = {   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                               0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x64, 0x01,
                               0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 };
     write_reg = new Register8WriteDel(WriteRegister);
     registers = new Register8[40];
     for(int i=0; i<40; i++)
         registers[i] = new Register8(i.ToString(), write_reg, (byte)i, default_vals[i]);
     lpt_addr = addr;
     current_control_mode = mode;
 }