usbmgmt/usbmgrtest/t_acm/src/t_acm.cpp
branchRCL_3
changeset 15 f92a4f87e424
parent 0 c9bc50fca66e
child 16 012cc2ee6408
equal deleted inserted replaced
14:d3e8e7d462dd 15:f92a4f87e424
    32 TCommConfig TheConfigBuf;
    32 TCommConfig TheConfigBuf;
    33 TCommConfigV01& TheConfig = TheConfigBuf();
    33 TCommConfigV01& TheConfig = TheConfigBuf();
    34 
    34 
    35 const TInt KReceiveBufferLength = 4096;
    35 const TInt KReceiveBufferLength = 4096;
    36 const TInt KMaxAcmPortNameLength = 8;
    36 const TInt KMaxAcmPortNameLength = 8;
    37 //_LIT(KUsbCsyName, "ECACM");
       
    38 _LIT(KUsbPortName, "ACM::0");
    37 _LIT(KUsbPortName, "ACM::0");
    39 _LIT(KUsbPortNameAcm1, "ACM::1");
    38 _LIT(KUsbPortNameAcm1, "ACM::1");
    40 
    39 
    41 _LIT(KUsbLddName, "EUSBC");
    40 _LIT(KUsbLddName, "EUSBC");
    42 
    41 
   941 		}
   940 		}
   942 
   941 
   943 	_printf(_L("Writing data\n"));
   942 	_printf(_L("Writing data\n"));
   944 	for (timeout = 10; timeout<100; timeout++)
   943 	for (timeout = 10; timeout<100; timeout++)
   945 		{
   944 		{
   946 //		FillBuffer(readBuf);
       
   947 
       
   948 		port.Write(status, readBuf);
   945 		port.Write(status, readBuf);
   949 
   946 
   950 		// Wait before cancelling
   947 		// Wait before cancelling
   951 		timer.After(status, timeout);
   948 		timer.After(status, timeout);
   952 		User::WaitForRequest(status);
   949 		User::WaitForRequest(status);
  1772 				  _printf(_L("8. Break (test 2.7)\n"));
  1769 				  _printf(_L("8. Break (test 2.7)\n"));
  1773 				  _printf(_L("9. Event notification, signal change (test 2.8.1)\n"));
  1770 				  _printf(_L("9. Event notification, signal change (test 2.8.1)\n"));
  1774 				  _printf(_L("a. Event notification, flow control (test 2.8.2)\n"));
  1771 				  _printf(_L("a. Event notification, flow control (test 2.8.2)\n"));
  1775 				  _printf(_L("b. Event notification, config change (test 2.8.3)\n"));
  1772 				  _printf(_L("b. Event notification, config change (test 2.8.3)\n"));
  1776 				  _printf(_L("c. Second client (test 2.9)\n"));
  1773 				  _printf(_L("c. Second client (test 2.9)\n"));
  1777 /*				  _printf(_L("d. ACM request, encapsulated command (test 2.10.1)\n"));
  1774 				  _printf(_L("p. Loopback test (test 2.12)\n"));
  1778 				  _printf(_L("e. ACM request, break (test 2.10.2)\n"));
       
  1779 				  _printf(_L("f. ACM request, setting feature (test 2.10.3)\n"));
       
  1780 				  _printf(_L("g. ACM request, clearing feature (test 2.10.4)\n"));
       
  1781 				  _printf(_L("h. ACM request, setting line coding (test 2.10.5)\n"));
       
  1782 				  _printf(_L("i. ACM request, control line state (test 2.10.6)\n"));
       
  1783 				  _printf(_L("j. ACM request, encapsualted response (test 2.10.7)\n"));
       
  1784 				  _printf(_L("k. ACM request, comms feature (test 2.10.8)\n"));
       
  1785 				  _printf(_L("l. ACM request, getting line coding (test 2.10.9)\n"));
       
  1786 				  _printf(_L("m. ACM Notifications, send serial state (test 2.11.1)\n"));
       
  1787 				  _printf(_L("n. ACM Notifications, network status (test 2.11.2)\n"));
       
  1788 				  _printf(_L("o. ACM Notifications, response available (test 2.11.3)\n"));
       
  1789 */				  _printf(_L("p. Loopback test (test 2.12)\n"));
       
  1790 				  _printf(_L("q. Main menu\n"));
  1775 				  _printf(_L("q. Main menu\n"));
  1791 
  1776 
  1792 				  ch = (char) _getch();
  1777 				  ch = (char) _getch();
  1793 				  _printf(_L("\n"));
  1778 				  _printf(_L("\n"));
  1794 				  switch (ch)
  1779 				  switch (ch)