コード例 #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
ファイル: OBDCommELM.cs プロジェクト: qqj1228/SH_OBD
 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);
 }