public void StandBy() { UpdateHardware = false; DDSTuningWord = 0; ResetDDS(); byte pio_ic1_temp = pio_ic1.GetData(); pio_ic1.SetData(0); pio_ic1.SetBit(MUTE); byte pio_ic3_temp = pio_ic3.GetData(); pio_ic3.SetData(0); byte rfe_ic7_temp = 0; byte rfe_ic9_temp = 0; byte rfe_ic10_temp = 0; byte rfe_ic11_temp = 0; if (rfe_present) { rfe_ic7_temp = rfe_ic7.GetData(); rfe_ic7.SetData(0); rfe_ic7.SetBit(PA_BIAS); rfe_ic9_temp = rfe_ic9.GetData(); rfe_ic9.SetData(0); rfe_ic10_temp = rfe_ic10.GetData(); rfe_ic10.SetData(0); rfe_ic11_temp = rfe_ic11.GetData(); rfe_ic11.SetData(0); rfe_ic11.SetBit(ADC_CS_NOT); } UpdateHardware = true; UpdateHardware = false; pio_ic1.SetData(pio_ic1_temp); pio_ic3.SetData(pio_ic3_temp); if (rfe_present) { rfe_ic7.SetData(rfe_ic7_temp); rfe_ic9.SetData(rfe_ic9_temp); rfe_ic10.SetData(rfe_ic10_temp); rfe_ic11.SetData(rfe_ic11_temp); } }
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)); }