SDRSharper/SDRSharper.Radio/SDRSharp.Radio/RdsDetectorBank.cs
SDRSharpR c07e6e6034 SDRSharper (SDRSharp Remake) Full Source (VS2017)
SDRSharper (SDRSharp Remake) Full Source (VS2017)
2018-03-26 14:02:05 -07:00

32 lines
603 B
C#

namespace SDRSharp.Radio
{
public class RdsDetectorBank
{
private readonly RdsDumpGroups _dumpGroups;
private readonly SyndromeDetector _detector;
public string RadioText => this._dumpGroups.RadioText;
public string ProgramService => this._dumpGroups.ProgramService;
public ushort PICode => this._dumpGroups.PICode;
public RdsDetectorBank()
{
this._dumpGroups = new RdsDumpGroups();
this._detector = new SyndromeDetector(this._dumpGroups);
}
public void Process(bool b)
{
this._detector.Clock(b);
}
public void Reset()
{
this._dumpGroups.Reset();
}
}
}