protected void Setup(CommLine.CommLineSettings settings) { _RxBuffer = new byte[settings.RxStringBufferSize]; _RxTerm = settings.RxTerminator; _RxFilter = settings.RxFilter; TransTimeout = settings.TransactTimeout; _TxTerm = settings.TxTerminator; }
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); }