equal
deleted
inserted
replaced
203 aBuf.Append(_L("CTS/RTS ")); |
203 aBuf.Append(_L("CTS/RTS ")); |
204 if (aConfig.iHandshake&KConfigObeyDSR) |
204 if (aConfig.iHandshake&KConfigObeyDSR) |
205 aBuf.Append(_L("DSR/DTR ")); |
205 aBuf.Append(_L("DSR/DTR ")); |
206 if (aConfig.iHandshake&KConfigWriteBufferedComplete) |
206 if (aConfig.iHandshake&KConfigWriteBufferedComplete) |
207 aBuf.Append(_L("Early ")); |
207 aBuf.Append(_L("Early ")); |
|
208 //|KConfigObeyDCD|KConfigFailDCD|)) |
|
209 |
|
210 |
|
211 // if (aConfig.iBreak==TEiger::EBreakOn) |
|
212 // aBuf.Append(_L("Brk ")); |
208 if (aConfig.iFifo==EFifoEnable) |
213 if (aConfig.iFifo==EFifoEnable) |
209 aBuf.Append(_L("Fifo ")); |
214 aBuf.Append(_L("Fifo ")); |
210 |
215 |
211 // Settings |
216 // Settings |
212 if (aSettings.iLocalEcho) |
217 if (aSettings.iLocalEcho) |
216 // rx mode |
221 // rx mode |
217 if ((aSettings.iRxMode&~ECapture)==ELoopBack) |
222 if ((aSettings.iRxMode&~ECapture)==ELoopBack) |
218 aBuf.Append(_L("LpBk")); |
223 aBuf.Append(_L("LpBk")); |
219 else if ((aSettings.iRxMode&~ECapture)==ECountChars) |
224 else if ((aSettings.iRxMode&~ECapture)==ECountChars) |
220 aBuf.Append(_L("CtCh")); |
225 aBuf.Append(_L("CtCh")); |
|
226 //else if (aSettings.iRxMode==ERxOff) |
|
227 //{ |
|
228 //aBuf.Append(_L("NoRx")); |
|
229 //} |
221 aBuf.Append(_L(" ")); |
230 aBuf.Append(_L(" ")); |
222 aBuf.AppendNum((TInt)(RThread().Priority())); |
231 aBuf.AppendNum((TInt)(RThread().Priority())); |
223 if (aSettings.iInfraRed==1) |
232 if (aSettings.iInfraRed==1) |
224 aBuf.Append(_L("IR1")); |
233 aBuf.Append(_L("IR1")); |
225 else if (aSettings.iInfraRed==2) |
234 else if (aSettings.iInfraRed==2) |
346 aWait=EFalse; |
355 aWait=EFalse; |
347 else if (aDes.FindF(_L("1"))>=0) |
356 else if (aDes.FindF(_L("1"))>=0) |
348 aWait=ETrue; |
357 aWait=ETrue; |
349 } |
358 } |
350 |
359 |
|
360 /*LOCAL_C void GetBreak(const TDesC &aDes) |
|
361 { |
|
362 |
|
363 if (aDes==_L("")) |
|
364 { |
|
365 if (data.iBreak==TEiger::EBreakOn) |
|
366 data.iBreak=TEiger::EBreakOff; |
|
367 else |
|
368 data.iBreak=TEiger::EBreakOn; |
|
369 } |
|
370 if (aDes.FindF(_L("N"))>=0) |
|
371 data.iBreak=TEiger::EBreakOn; |
|
372 if (aDes.FindF(_L("F"))>=0) |
|
373 data.iBreak=TEiger::EBreakOff; |
|
374 SetConfig(); |
|
375 } |
|
376 */ |
351 LOCAL_C void GetFifo(TUint& aFifo, const TDesC &aDes) |
377 LOCAL_C void GetFifo(TUint& aFifo, const TDesC &aDes) |
352 { |
378 { |
353 |
379 |
354 if (aDes==_L("")) |
380 if (aDes==_L("")) |
355 { |
381 { |
440 break; |
466 break; |
441 TText a=(TText)k.Code(); |
467 TText a=(TText)k.Code(); |
442 TPtrC s(&a,1); |
468 TPtrC s(&a,1); |
443 dialog.Write(s); |
469 dialog.Write(s); |
444 aSettings.iDumpData.Append(k.Code()); |
470 aSettings.iDumpData.Append(k.Code()); |
|
471 //if (a=='\r') |
|
472 // dialog.Write(_L("\n")); |
445 } while (aSettings.iDumpData.Length()<KMaxDumpLength); |
473 } while (aSettings.iDumpData.Length()<KMaxDumpLength); |
446 |
474 |
447 dialog.Destroy(); |
475 dialog.Destroy(); |
448 dialog.Close(); |
476 dialog.Close(); |
449 } |
477 } |
498 GetParity(aConfig.iParity, right); |
526 GetParity(aConfig.iParity, right); |
499 if (des[0]=='S') |
527 if (des[0]=='S') |
500 GetStopBit(aConfig.iStopBits, right); |
528 GetStopBit(aConfig.iStopBits, right); |
501 if (des[0]=='L') |
529 if (des[0]=='L') |
502 GetLength(aConfig.iDataBits, right); |
530 GetLength(aConfig.iDataBits, right); |
|
531 // if (des[0]=='K') |
|
532 // GetBreak(aSettings.iBreak, right); |
503 if (des[0]=='F') |
533 if (des[0]=='F') |
504 GetFifo(aConfig.iFifo, right); |
534 GetFifo(aConfig.iFifo, right); |
505 if (des[0]=='I') |
535 if (des[0]=='I') |
506 GetInfraRedMode(aSettings.iInfraRed, right); |
536 GetInfraRedMode(aSettings.iInfraRed, right); |
507 if (aSettings.iInfraRed==1) |
537 if (aSettings.iInfraRed==1) |
715 } |
745 } |
716 |
746 |
717 TheWindow.Write(_L("Opened USB Comm Port\r\n")); |
747 TheWindow.Write(_L("Opened USB Comm Port\r\n")); |
718 |
748 |
719 TheCommPort.Config(TheConfigBuf); // get config |
749 TheCommPort.Config(TheConfigBuf); // get config |
720 TheConfig.iHandshake=0; |
750 TheConfig.iHandshake=0; //KConfigObeyXoff|KConfigSendXoff; |
721 TheCommPort.SetConfig(TheConfigBuf); |
751 TheCommPort.SetConfig(TheConfigBuf); |
722 TheCommPort.SetReceiveBufferLength(8192); |
752 TheCommPort.SetReceiveBufferLength(8192); |
723 |
753 |
724 // Set up a console window |
754 // Set up a console window |
725 TheWindow.Control(_L("+Maximize +Newline")); |
755 TheWindow.Control(_L("+Maximize +Newline")); |