Пример #1
0
 protected void Setup(CommLine.CommLineSettings s)
 {
     RxBuffer     = new byte[s.rxStringBufferSize];
     RxTerm       = s.rxTerminator;
     RxFilter     = s.rxFilter;
     TransTimeout = (uint)s.transactTimeout;
     TxTerm       = s.txTerminator;
 }
Пример #2
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;
 }
Пример #3
0
 protected override CommBase.CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings s = new CommLine.CommLineSettings();
     s.SetStandard(m_strPort, m_iBaudRate, CommBase.Handshake.none);
     s.rxTerminator = (CommBase.ASCII)0x3e;
     s.rxFilter = new ASCII[] { ASCII.LF, ASCII.SP, (ASCII)0x3e };
     s.txTerminator = new ASCII[] { ASCII.CR };
     s.transactTimeout = 15000;
     base.Setup(s);
     return s;
 }
Пример #4
0
 protected override CommBase.CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings s = new CommLine.CommLineSettings();
     s.SetStandard(m_strPort, m_iBaudRate, CommBase.Handshake.none);
     s.rxTerminator    = (CommBase.ASCII) 0x3e;
     s.rxFilter        = new ASCII[] { ASCII.LF, ASCII.SP, (ASCII)0x3e };
     s.txTerminator    = new ASCII[] { ASCII.CR };
     s.transactTimeout = 15000;
     base.Setup(s);
     return(s);
 }
Пример #5
0
 protected override CommBaseSettings CommSettings()
 {
     CommLine.CommLineSettings settings = new CommLine.CommLineSettings();
     settings.SetStandard(m_Port, m_BaudRate, Handshake.None);
     settings.RxTerminator    = m_asciiRxTerm;
     settings.RxFilter        = new ASCII[] { ASCII.LF, ASCII.SP, ASCII.GT, ASCII.NULL };
     settings.TxTerminator    = new ASCII[] { ASCII.CR };
     settings.TransactTimeout = m_Timeout;
     base.Setup(settings);
     return(settings);
 }