Example #1
0
 protected void Setup(CommLine.CommLineSettings settings)
 {
     m_RxBuffer     = new byte[settings.RxStringBufferSize];
     m_RxTerm       = settings.RxTerminator;
     m_RxFilter     = settings.RxFilter;
     m_TransTimeout = settings.TransactTimeout;
     m_TxTerm       = settings.TxTerminator;
 }
Example #2
0
 protected override CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings settings = new CommLine.CommLineSettings();
     settings.SetStandard(m_Port, m_BaudRate);
     settings.RxTerminator    = m_asciiRxTerm;
     settings.RxFilter        = m_RxFilterWithSpace;
     settings.TxTerminator    = new ASCII[] { ASCII.CR };
     settings.TransactTimeout = m_Timeout;
     base.Setup(settings);
     return(settings);
 }