Exemple #1
0
 public Codec(ICodecFactory cf, Analyzer a)
 {
     decoder = cf.GetDecoder ();
     encoder = cf.GetEncoder ();
     analyzer = a;
     analyzer.BindListDelegate (this.GetDataFromAnalyzer);
 }
Exemple #2
0
 /// <summary>
 /// Open this instance.
 /// </summary>
 public void Open()
 {
     _sa = new SerialAgent (PortName, BaudRate, Parity, DataBits, StopBits);
     _analyzer = new Analyzer ();
     _analyzer.SetLineBreak (_lineBreak);
     _analyzer.DataListReadyEvent += OnDataListReady;
     _analyzer.SetAgent (_sa);
     IsOpen = true;
 }