public SyndromeDetector(RdsDumpGroups dumpGroups) { _dumpGroups = dumpGroups; }
public RdsDetectorBank() { _dumpGroups = new RdsDumpGroups(); _detector = new SyndromeDetector(_dumpGroups); }
public SyndromeDetector(RdsDumpGroups dumpGroups) { _dumpGroups = dumpGroups; }
public bool AnalyseFrames(ushort groupA, ushort groupB, ushort groupC, ushort groupD) { bool result = false; if ((groupB & 0xF800) == 16384) { string value = RdsDumpGroups.Dump4A(groupB, groupC, groupD); Console.WriteLine(value); } if ((groupB & 0xF800) == 8192) { bool flag = (groupB & 0x10) > 0; int num = (groupB & 0xF) * 4; this._chars[0] = (char)(groupC >> 8); this._chars[1] = (char)(groupC & 0xFF); this._chars[2] = (char)(groupD >> 8); this._chars[3] = (char)(groupD & 0xFF); lock (this) { if (flag != this._radioTextABFlag) { this._radioTextABFlag = flag; } for (int i = 0; i < this._chars.Length; i++) { if (this._chars[i] >= ' ' && this._chars[i] <= '~') { if (!flag) { this._radioTextSBA[num + i] = this._chars[i]; } else { this._radioTextSBB[num + i] = this._chars[i]; } } } if (!flag) { this._radioText = new string(this._radioTextSBA).TrimEnd(); } else { this._radioText = new string(this._radioTextSBB).TrimEnd(); } this._piCode = groupA; } result = true; } if ((groupB & 0xF800) == 0) { int num2 = (groupB & 3) * 2; this._chars[0] = (char)(groupD >> 8); this._chars[1] = (char)(groupD & 0xFF); lock (this) { for (int j = 0; j < 2; j++) { if (this._chars[j] >= ' ' && this._chars[j] <= '~') { this._programServiceSB[num2 + j] = this._chars[j]; } } this._programService = new string(this._programServiceSB).Substring(0, 8); this._piCode = groupA; } result = true; } return(result); }
public RdsDetectorBank() { _dumpGroups = new RdsDumpGroups(); _detector = new SyndromeDetector(_dumpGroups); }