kerneltest/e32test/device/t_commsk.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
    46 RComm* theSerialPort;
    46 RComm* theSerialPort;
    47 TCommCaps theCaps1Buf;
    47 TCommCaps theCaps1Buf;
    48 TCommCapsV01& theCaps1=theCaps1Buf();
    48 TCommCapsV01& theCaps1=theCaps1Buf();
    49 TBool MediaChangeTestingEnabled;
    49 TBool MediaChangeTestingEnabled;
    50 
    50 
       
    51 const TInt KWriteSize=250;
       
    52 const TInt KXonNumReads=0x10;
       
    53 const TInt KXonReadSize=0x400;	// Must be bigger than comm buffer high water==0x300
    51 
    54 
    52 class TResult
    55 class TResult
    53 	{
    56 	{
    54 public:
    57 public:
    55 	enum TResTest {ETestPower,ESimpleWriting};
    58 	enum TResTest {ETestPower,ESimpleWriting};
    70 	TUint iMask; 
    73 	TUint iMask; 
    71 	TBps iSpeed;
    74 	TBps iSpeed;
    72 	const TText* iName;
    75 	const TText* iName;
    73 	};
    76 	};
    74 
    77 
    75 /*
       
    76 const TSpeedAndName KSpeeds[]=
    78 const TSpeedAndName KSpeeds[]=
    77 	{
    79 	{
    78 	{KCapsBps50,EBps50,_S("50")}, 
    80 	{KCapsBps50,EBps50,_S("50")}, 
    79 	{KCapsBps2400,EBps2400,_S("2400")},
    81 	{KCapsBps2400,EBps2400,_S("2400")},
    80 	{KCapsBps9600,EBps9600,_S("9600")},
    82 	{KCapsBps9600,EBps9600,_S("9600")},
    81 	{KCapsBps19200,EBps19200,_S("19200")},
    83 	{KCapsBps19200,EBps19200,_S("19200")},
    82 	{KCapsBps57600,EBps57600,_S("57600")},
    84 	{KCapsBps57600,EBps57600,_S("57600")},
    83 	{KCapsBps115200,EBps115200,_S("115200")},
    85 	{KCapsBps115200,EBps115200,_S("115200")},
    84 	};*/
    86 	};
       
    87 
    85 class TFrameAndName
    88 class TFrameAndName
    86 	{
    89 	{
    87 public:
    90 public:
    88 	TDataBits iData;
    91 	TDataBits iData;
    89 	TStopBits iStop;
    92 	TStopBits iStop;
    90 	TParity iParity;
    93 	TParity iParity;
    91 	const TText* iName;
    94 	const TText* iName;
    92 	};
    95 	};
    93 /*
    96 
    94 const TFrameAndName KFrameTypes[]=
    97 const TFrameAndName KFrameTypes[]=
    95 	{
    98 	{
    96 	{EData8,EStop1,EParityNone,_S("8,N,1")},
    99 	{EData8,EStop1,EParityNone,_S("8,N,1")},
    97 	{EData8,EStop1,EParityEven,_S("8,E,1")},
   100 	{EData8,EStop1,EParityEven,_S("8,E,1")},
    98 	{EData8,EStop1,EParityOdd,_S("8,O,1")},
   101 	{EData8,EStop1,EParityOdd,_S("8,O,1")},
   106 	{EData7,EStop2,EParityOdd,_S("7,O,2")},
   109 	{EData7,EStop2,EParityOdd,_S("7,O,2")},
   107 
   110 
   108 	{EData7,EStop1,EParityNone,_S("7,N,1")},
   111 	{EData7,EStop1,EParityNone,_S("7,N,1")},
   109 	{EData7,EStop1,EParityEven,_S("7,E,1")},
   112 	{EData7,EStop1,EParityEven,_S("7,E,1")},
   110 	{EData7,EStop1,EParityOdd,_S("7,O,1")},
   113 	{EData7,EStop1,EParityOdd,_S("7,O,1")},
   111 	};*/
   114 	};
   112 
   115 
   113 class THandShakeAndName
   116 class THandShakeAndName
   114 	{
   117 	{
   115 public:
   118 public:
   116 	TUint iHandshake;
   119 	TUint iHandshake;