public void CloseDemod() { if (Demodulator != null) { Demodulator = null; } }
private void btnPpmDemod_Click(object sender, EventArgs e) { CloseDemod(); if (SampleSource == null) { return; } PPMDemodulator ppm = new PPMDemodulator(); ppm.Plot = new LibRXFFT.Components.DirectX.DirectXWaveformDisplay(); ppm.Plot.SamplingRate = SampleSource.SamplingRate; ppm.Plot.Dock = DockStyle.Fill; Form form = new Form(); form.Controls.Add(ppm.Plot); form.Show(); DigitalDemodulator demod = ppm; demod.SamplingRate = SampleSource.SamplingRate; demod.Init(); Demodulator = demod; ManchesterBitSink dec = new ManchesterBitSink(); dec.BitSink = new LogSink(); demod.BitSink = dec.BitSink; }
private void btnOpenASK_Click(object sender, EventArgs e) { CloseDemod(); if (SampleSource == null) { return; } DigitalDemodulator demod = new ASKDemodulator(); demod.SamplingRate = SampleSource.SamplingRate; demod.Init(); Demodulator = demod; }
private void btnPocsag_Click(object sender, EventArgs e) { CloseDemod(); if (SampleSource == null) { return; } DigitalDemodulator demod = new PSKDemodulator(); demod.BitSink = new POCSAGDecoder(); demod.SamplingRate = SampleSource.SamplingRate; demod.Init(); Demodulator = demod; }
public void LuaSetDemod(DigitalDemodulator demod) { Demodulator = demod; Demodulator.BitSink = this; }