Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.
Dependencies: MaximTinyTester CmdLine MAX541 USBDevice
Diff: Test_Menu_MAX11043.cpp
- Revision:
- 93:6b22269935a6
- Parent:
- 92:ce099f7cfd4b
--- a/Test_Menu_MAX11043.cpp Mon Mar 02 23:00:51 2020 +0000 +++ b/Test_Menu_MAX11043.cpp Wed Mar 04 10:03:12 2020 +0000 @@ -386,7 +386,7 @@ // CODE GENERATOR: CommandParamIn 'uint32_t gain' // CODE GENERATOR: CommandReturnType 'uint8_t' // CODE GENERATOR: CommandPre '' -// CODE GENERATOR: CommandDocParamIn '@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1VV/V, 0x4000=2V/V, default=0x2000' +// CODE GENERATOR: CommandDocParamIn '@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1V/V, 0x4000=2V/V, default=0x2000' // CODE GENERATOR: CommandDocParamOut '' // CODE GENERATOR: CommandPost '' // CODE GENERATOR: CommandReturn '@return 1 on success; 0 on failure' @@ -803,6 +803,7 @@ (adcd_MAX_SEEN & 0xFFFF), (adcd_MAX_SEEN ) ); + cmdLine.serial().printf("\r\n"); } if (ch == 'D' || ch == 'd' || ch == 'F' || ch == 'f' || ch == 'R' || ch == 'r') { continue; @@ -810,11 +811,11 @@ if (ch == 'X' || ch == 'x' || ch == '\x03') { break; } - cmdLine.serial().printf(" (ignored \\x%2.2x) ", (int)ch); + cmdLine.serial().printf(" (ignored \\x%2.2x)\r\nD:Display F:Fake R:Reset X:Exit\r\n", (int)ch); } // Stop the test Read4Command_Thread_event_flags.clear(MYTIMEREVENTFLAG_ENABLE_SPI); - wait_us(100); + wait_us(200); //~ cmdLine.serial().set_blocking(serial_is_blocking); cmdLine.serial().printf(" Stopped.\r\n"); g_MAX11043_device.onSPIprint = saved_onSPIprint_handler; @@ -1172,7 +1173,7 @@ // CODE GENERATOR: CommandParamIn 'uint32_t gain' // CODE GENERATOR: CommandReturnType 'uint8_t' // CODE GENERATOR: CommandPre '' -// CODE GENERATOR: CommandDocParamIn '@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1VV/V, 0x4000=2V/V, default=0x2000' +// CODE GENERATOR: CommandDocParamIn '@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1V/V, 0x4000=2V/V, default=0x2000' // CODE GENERATOR: CommandDocParamOut '' // CODE GENERATOR: CommandPost '' // CODE GENERATOR: CommandReturn '@return 1 on success; 0 on failure' @@ -1186,13 +1187,13 @@ // CommandParamIn='uint32_t gain' // CommandReturnType='uint8_t' // @Pre='' - // @Param[in]='@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1VV/V, 0x4000=2V/V, default=0x2000' + // @Param[in]='@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1V/V, 0x4000=2V/V, default=0x2000' // @Param[out]='' // @Post='' // displayPost='' // @Return='@return 1 on success; 0 on failure' // parse argument list - // argname default_argvalue numeric literal specified in CommandDocParamIn @Param[in]='@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1VV/V, 0x4000=2V/V, default=0x2000' + // argname default_argvalue numeric literal specified in CommandDocParamIn @Param[in]='@param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1V/V, 0x4000=2V/V, default=0x2000' // parse argument uint32_t gain uint32_t gain = (uint32_t)0x2000; // --- g_MAX11043_device.__WARNING_no_match_for_argname_gain_in_MAX11043_device_t__; // default to global property value if (cmdLine.parse_uint32_dec("gain", gain))