예제 #1
0
파일: CommLine.cs 프로젝트: qqj1228/SH_OBD
 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;
 }
예제 #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);
 }