Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.

Dependencies:   MaximTinyTester CmdLine MAX541 USBDevice

Revision:
89:20fd6ce5e4dd
Parent:
88:e4fd5033a55f
Child:
90:d6ed8a8c5f26
--- a/Test_Menu_MAX11043.cpp	Fri Feb 28 00:59:24 2020 +0000
+++ b/Test_Menu_MAX11043.cpp	Fri Feb 28 07:59:58 2020 +0000
@@ -390,6 +390,20 @@
 // CODE GENERATOR:           CommandDocParamOut ''
 // CODE GENERATOR:           CommandPost ''
 // CODE GENERATOR:           CommandReturn '@return 1 on success; 0 on failure'
+// CODE GENERATOR: MAX11043 Command Name = Configure_Demo (void) --> void
+// CODE GENERATOR: Menu item hint description Menu item 'XD'
+// CODE GENERATOR: Menu item 'XD' -- Menu item XD
+// CODE GENERATOR: test menu case 'XD':
+// CODE GENERATOR:           helpString 'XD -- Configure_Demo'
+// CODE GENERATOR:           CMD_ 'None'
+// CODE GENERATOR:           CommandName 'Configure_Demo'
+// CODE GENERATOR:           CommandParamIn 'void'
+// CODE GENERATOR:           CommandReturnType 'void'
+// CODE GENERATOR:           CommandPre ''
+// CODE GENERATOR:           CommandDocParamIn ''
+// CODE GENERATOR:           CommandDocParamOut ''
+// CODE GENERATOR:           CommandPost ''
+// CODE GENERATOR:           CommandReturn ''
 // CODE GENERATOR: MAX11043 Command Name = Configure_XXXXX (uint8_t linef, uint8_t rate) --> uint8_t
 // CODE GENERATOR: Menu item hint description Menu item 'XX'
 // CODE GENERATOR: Menu item 'XX' -- Menu item XX
@@ -482,12 +496,14 @@
 
 // CODE GENERATOR: scan testMenuCommand list for items that can be shortened to single character
 // CODE GENERATOR: multiple commands begin with character 'X'
+// CODE GENERATOR: multiple commands begin with character 'X'
 // CODE GENERATOR: shorten testMenuCommand to single character if unambiguous
 // CODE GENERATOR: testMenuCommand '!' already single character
 // CODE GENERATOR: testMenuCommand '$' already single character
 // CODE GENERATOR: shorten testMenuCommand 'GA' to single character 'G'
 // CODE GENERATOR: re.sub pattern:'GA' with repl:'G' in helpString 'GA gain=? -- Write_AGain'
 // CODE GENERATOR: updated 'G' help string to 'G gain=? -- Write_AGain'
+// CODE GENERATOR: cannot shorten testMenuCommand 'XD' to single character due to duplicates
 // CODE GENERATOR: cannot shorten testMenuCommand 'XX' to single character due to duplicates
 // CODE GENERATOR: cannot shorten testMenuCommand 'XY' to single character due to duplicates
 
@@ -503,6 +519,9 @@
     // CODE GENERATOR: command: G
     // CODE GENERATOR: help: G gain=? -- Write_AGain
     cmdLine.serial().printf("\r\n G gain=? -- Write_AGain");
+    // CODE GENERATOR: command: XD
+    // CODE GENERATOR: help: XD -- Configure_Demo
+    cmdLine.serial().printf("\r\n XD -- Configure_Demo");
     // CODE GENERATOR: command: XX
     // CODE GENERATOR: help: XX linef=? rate=? -- Configure_XXXXX
     cmdLine.serial().printf("\r\n XX linef=? rate=? -- Configure_XXXXX");
@@ -1190,7 +1209,46 @@
         } // end case 'G'
         break;
 
-// CODE GENERATOR: top of loop: testMenuCommand="XX", testMenuFirstCharHandler="None"
+// CODE GENERATOR: top of loop: testMenuCommand="XD", testMenuFirstCharHandler="None"
+// CODE GENERATOR: test menu case 'XD':
+// CODE GENERATOR:           helpString 'XD -- Configure_Demo'
+// CODE GENERATOR:           CMD_ 'None'
+// CODE GENERATOR:           CommandName 'Configure_Demo'
+// CODE GENERATOR:           CommandParamIn 'void'
+// CODE GENERATOR:           CommandReturnType 'void'
+// CODE GENERATOR:           CommandPre ''
+// CODE GENERATOR:           CommandDocParamIn ''
+// CODE GENERATOR:           CommandDocParamOut ''
+// CODE GENERATOR:           CommandPost ''
+// CODE GENERATOR:           CommandReturn ''
+        case 'X': // (multiple characters) (testMenuFirstCharHandler="X"):
+        {
+            switch (cmdLine[1])
+            {
+                case 'D': // (nested inside case 'X')
+                {
+                    // test menu command 'XD' handler:
+                    // helpString='XD -- Configure_Demo'
+                    // CMD_='None'
+                    // CommandName='Configure_Demo'
+                    // CommandParamIn='void'
+                    // CommandReturnType='void'
+                    // @Pre=''
+                    // @Param[in]=''
+                    // @Param[out]=''
+                    // @Post=''
+                    // displayPost=''
+                    // @Return=''
+                    cmdLine.serial().printf("Configure_Demo");
+                    // call function Configure_Demo
+                    g_MAX11043_device.Configure_Demo();
+                    return true; // command handled by MAX11043
+// CODE GENERATOR: bottom of loop: testMenuCommand="XD", testMenuFirstCharHandler="X"
+                } // end nested case 'XD'
+                break;
+
+// CODE GENERATOR: top of loop: testMenuCommand="XX", testMenuFirstCharHandler="X"
+// CODE GENERATOR: top of loop: nested switch "X" is currently open
 // CODE GENERATOR: test menu case 'XX':
 // CODE GENERATOR:           helpString 'XX linef=? rate=? -- Configure_XXXXX'
 // CODE GENERATOR:           CMD_ 'None'
@@ -1202,10 +1260,6 @@
 // CODE GENERATOR:           CommandDocParamOut ''
 // CODE GENERATOR:           CommandPost ''
 // CODE GENERATOR:           CommandReturn '@return 1 on success; 0 on failure'
-        case 'X': // (multiple characters) (testMenuFirstCharHandler="X"):
-        {
-            switch (cmdLine[1])
-            {
                 case 'X': // (nested inside case 'X')
                 {
                     // test menu command 'XX' handler: