kerneltest/e32test/device/t_commsk.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
    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
       
    54 
    51 
    55 class TResult
    52 class TResult
    56 	{
    53 	{
    57 public:
    54 public:
    58 	enum TResTest {ETestPower,ESimpleWriting};
    55 	enum TResTest {ETestPower,ESimpleWriting};
    73 	TUint iMask; 
    70 	TUint iMask; 
    74 	TBps iSpeed;
    71 	TBps iSpeed;
    75 	const TText* iName;
    72 	const TText* iName;
    76 	};
    73 	};
    77 
    74 
       
    75 /*
    78 const TSpeedAndName KSpeeds[]=
    76 const TSpeedAndName KSpeeds[]=
    79 	{
    77 	{
    80 	{KCapsBps50,EBps50,_S("50")}, 
    78 	{KCapsBps50,EBps50,_S("50")}, 
    81 	{KCapsBps2400,EBps2400,_S("2400")},
    79 	{KCapsBps2400,EBps2400,_S("2400")},
    82 	{KCapsBps9600,EBps9600,_S("9600")},
    80 	{KCapsBps9600,EBps9600,_S("9600")},
    83 	{KCapsBps19200,EBps19200,_S("19200")},
    81 	{KCapsBps19200,EBps19200,_S("19200")},
    84 	{KCapsBps57600,EBps57600,_S("57600")},
    82 	{KCapsBps57600,EBps57600,_S("57600")},
    85 	{KCapsBps115200,EBps115200,_S("115200")},
    83 	{KCapsBps115200,EBps115200,_S("115200")},
    86 	};
    84 	};*/
    87 
       
    88 class TFrameAndName
    85 class TFrameAndName
    89 	{
    86 	{
    90 public:
    87 public:
    91 	TDataBits iData;
    88 	TDataBits iData;
    92 	TStopBits iStop;
    89 	TStopBits iStop;
    93 	TParity iParity;
    90 	TParity iParity;
    94 	const TText* iName;
    91 	const TText* iName;
    95 	};
    92 	};
    96 
    93 /*
    97 const TFrameAndName KFrameTypes[]=
    94 const TFrameAndName KFrameTypes[]=
    98 	{
    95 	{
    99 	{EData8,EStop1,EParityNone,_S("8,N,1")},
    96 	{EData8,EStop1,EParityNone,_S("8,N,1")},
   100 	{EData8,EStop1,EParityEven,_S("8,E,1")},
    97 	{EData8,EStop1,EParityEven,_S("8,E,1")},
   101 	{EData8,EStop1,EParityOdd,_S("8,O,1")},
    98 	{EData8,EStop1,EParityOdd,_S("8,O,1")},
   109 	{EData7,EStop2,EParityOdd,_S("7,O,2")},
   106 	{EData7,EStop2,EParityOdd,_S("7,O,2")},
   110 
   107 
   111 	{EData7,EStop1,EParityNone,_S("7,N,1")},
   108 	{EData7,EStop1,EParityNone,_S("7,N,1")},
   112 	{EData7,EStop1,EParityEven,_S("7,E,1")},
   109 	{EData7,EStop1,EParityEven,_S("7,E,1")},
   113 	{EData7,EStop1,EParityOdd,_S("7,O,1")},
   110 	{EData7,EStop1,EParityOdd,_S("7,O,1")},
   114 	};
   111 	};*/
   115 
   112 
   116 class THandShakeAndName
   113 class THandShakeAndName
   117 	{
   114 	{
   118 public:
   115 public:
   119 	TUint iHandshake;
   116 	TUint iHandshake;