Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.
Dependencies: MaximTinyTester MAX11410 CmdLine USBDevice
Diff: Test_Menu_MAX11410.cpp
- Revision:
- 74:17ac42cd832e
- Parent:
- 72:118719cf19c6
- Child:
- 75:30f92fc5862d
--- a/Test_Menu_MAX11410.cpp Fri May 08 05:57:06 2020 +0000 +++ b/Test_Menu_MAX11410.cpp Fri May 08 09:40:00 2020 +0000 @@ -895,19 +895,19 @@ // CODE GENERATOR: @ command print double g_MAX11410_device.ref0_v cmdLine.serial().printf("ref0_v = "); // CODE GENERATOR: @ command print double g_MAX11410_device.ref0_v property name ending in physical units v - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.ref0_v); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.ref0_v); // CODE GENERATOR: @ command print double g_MAX11410_device.ref1_v cmdLine.serial().printf("ref1_v = "); // CODE GENERATOR: @ command print double g_MAX11410_device.ref1_v property name ending in physical units v - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.ref1_v); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.ref1_v); // CODE GENERATOR: @ command print double g_MAX11410_device.ref2_v cmdLine.serial().printf("ref2_v = "); // CODE GENERATOR: @ command print double g_MAX11410_device.ref2_v property name ending in physical units v - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.ref2_v); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.ref2_v); // CODE GENERATOR: @ command print double g_MAX11410_device.avdd_v cmdLine.serial().printf("avdd_v = "); // CODE GENERATOR: @ command print double g_MAX11410_device.avdd_v property name ending in physical units v - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.avdd_v); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.avdd_v); // CODE GENERATOR: @ command print uint32_t g_MAX11410_device.ctrl cmdLine.serial().printf("ctrl = "); // CODE GENERATOR: @ command print uint32_t g_MAX11410_device.ctrl no recognized physical unit, show both decimal and hexadecimal @@ -942,11 +942,11 @@ // CODE GENERATOR: @ command print double g_MAX11410_device.rtd_ohm cmdLine.serial().printf("rtd_ohm = "); // CODE GENERATOR: @ command print double g_MAX11410_device.rtd_ohm property name ending in physical units ohm - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.rtd_ohm); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.rtd_ohm); // CODE GENERATOR: @ command print double g_MAX11410_device.rtd_degc cmdLine.serial().printf("rtd_degc = "); // CODE GENERATOR: @ command print double g_MAX11410_device.rtd_degc property name ending in physical units degc - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.rtd_degc); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.rtd_degc); // CODE GENERATOR: @ command print uint8_t g_MAX11410_device.rtd_filter cmdLine.serial().printf("rtd_filter = "); // CODE GENERATOR: @ command print uint8_t g_MAX11410_device.rtd_filter no recognized physical unit, show both decimal and hexadecimal @@ -966,15 +966,15 @@ // CODE GENERATOR: @ command print double g_MAX11410_device.tc_v cmdLine.serial().printf("tc_v = "); // CODE GENERATOR: @ command print double g_MAX11410_device.tc_v property name ending in physical units v - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.tc_v); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.tc_v); // CODE GENERATOR: @ command print double g_MAX11410_device.tc_delta_degc cmdLine.serial().printf("tc_delta_degc = "); // CODE GENERATOR: @ command print double g_MAX11410_device.tc_delta_degc property name ending in physical units degc - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.tc_delta_degc); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.tc_delta_degc); // CODE GENERATOR: @ command print double g_MAX11410_device.tc_degc cmdLine.serial().printf("tc_degc = "); // CODE GENERATOR: @ command print double g_MAX11410_device.tc_degc property name ending in physical units degc - cmdLine.serial().printf("%f\r\n", g_MAX11410_device.tc_degc); + cmdLine.serial().printf("%1.6f\r\n", g_MAX11410_device.tc_degc); return true; // command handled by MAX11410 break; } @@ -1165,17 +1165,17 @@ uint8_t result = g_MAX11410_device.Read_All_Voltages(); cmdLine.serial().printf(" =%d\r\n", result); // Menu item '$' -> AINcode[0], AINcode[1], AINcode[2], AINcode[3], AINcode[4], AINcode[5], AINcode[6], AINcode[7], AINcode[8], AINcode[9], AINcode[10] - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[0]", g_MAX11410_device.AINcode[0]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[1]", g_MAX11410_device.AINcode[1]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[2]", g_MAX11410_device.AINcode[2]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[3]", g_MAX11410_device.AINcode[3]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[4]", g_MAX11410_device.AINcode[4]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[5]", g_MAX11410_device.AINcode[5]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[6]", g_MAX11410_device.AINcode[6]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[7]", g_MAX11410_device.AINcode[7]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[8]", g_MAX11410_device.AINcode[8]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[9]", g_MAX11410_device.AINcode[9]); - cmdLine.serial().printf("%s=%ld\r\n", "AINcode[10]", g_MAX11410_device.AINcode[10]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[0]", g_MAX11410_device.AINcode[0], g_MAX11410_device.AINcode[0]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[1]", g_MAX11410_device.AINcode[1], g_MAX11410_device.AINcode[1]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[2]", g_MAX11410_device.AINcode[2], g_MAX11410_device.AINcode[2]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[3]", g_MAX11410_device.AINcode[3], g_MAX11410_device.AINcode[3]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[4]", g_MAX11410_device.AINcode[4], g_MAX11410_device.AINcode[4]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[5]", g_MAX11410_device.AINcode[5], g_MAX11410_device.AINcode[5]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[6]", g_MAX11410_device.AINcode[6], g_MAX11410_device.AINcode[6]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[7]", g_MAX11410_device.AINcode[7], g_MAX11410_device.AINcode[7]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[8]", g_MAX11410_device.AINcode[8], g_MAX11410_device.AINcode[8]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[9]", g_MAX11410_device.AINcode[9], g_MAX11410_device.AINcode[9]); + cmdLine.serial().printf("%s=%ld = 0x%8.8lx\r\n", "AINcode[10]", g_MAX11410_device.AINcode[10], g_MAX11410_device.AINcode[10]); return true; // command handled by MAX11410 // CODE GENERATOR: bottom of loop: testMenuCommand="$", testMenuFirstCharHandler="None" } // end case '$'