예제 #1
0
 protected void Setup(CommLine.CommLineSettings settings)
 {
     _RxBuffer    = new byte[settings.RxStringBufferSize];
     _RxTerm      = settings.RxTerminator;
     _RxFilter    = settings.RxFilter;
     TransTimeout = settings.TransactTimeout;
     _TxTerm      = settings.TxTerminator;
 }
예제 #2
0
 protected override CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings settings = new CommLine.CommLineSettings();
     settings.SetStandard(_Port, _BaudRate);
     settings.RxTerminator = _asciiRxTerm;
     settings.RxFilter     = _RxFilterWithSpace;
     settings.TxTerminator = new byte[] { 0x0D };
     base.Setup(settings);
     return(settings);
 }