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

Dependencies:   MaximTinyTester CmdLine MAX5171 USBDevice

Files at this revision

API Documentation at this revision

Comitter:
whismanoid
Date:
Fri May 15 08:38:12 2020 +0000
Parent:
23:abd02fed1ae4
Commit message:
Support MAX5171BOB Self Test

Changed in this revision

CmdLine.lib Show annotated file Show diff for this revision Revisions of this file
MAX5171.lib Show annotated file Show diff for this revision Revisions of this file
MAX541.lib Show diff for this revision Revisions of this file
MaximTinyTester.lib Show annotated file Show diff for this revision Revisions of this file
Test_Main_MAX5171.cpp Show annotated file Show diff for this revision Revisions of this file
Test_Menu_MAX5171.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 CmdLine.lib
--- a/CmdLine.lib	Fri Apr 03 06:27:43 2020 +0000
+++ b/CmdLine.lib	Fri May 15 08:38:12 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/whismanoid/code/CmdLine/#447a747099e6
+https://os.mbed.com/users/whismanoid/code/CmdLine/#9abcdf4eb4e4
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 MAX5171.lib
--- a/MAX5171.lib	Fri Apr 03 06:27:43 2020 +0000
+++ b/MAX5171.lib	Fri May 15 08:38:12 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/MaximIntegrated/code/MAX5171/#f661c4a61207
+https://os.mbed.com/teams/MaximIntegrated/code/MAX5171/#564b438a0448
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 MAX541.lib
--- a/MAX541.lib	Fri Apr 03 06:27:43 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/MaximIntegrated/code/MAX541/#4836afabd85b
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 MaximTinyTester.lib
--- a/MaximTinyTester.lib	Fri Apr 03 06:27:43 2020 +0000
+++ b/MaximTinyTester.lib	Fri May 15 08:38:12 2020 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/whismanoid/code/MaximTinyTester/#bfa56dab822c
+https://os.mbed.com/users/whismanoid/code/MaximTinyTester/#10219b869ac3
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 Test_Main_MAX5171.cpp
--- a/Test_Main_MAX5171.cpp	Fri Apr 03 06:27:43 2020 +0000
+++ b/Test_Main_MAX5171.cpp	Fri May 15 08:38:12 2020 +0000
@@ -1742,6 +1742,10 @@
 #ifndef MAX5171_ONSPIPRINT
 #define MAX5171_ONSPIPRINT 1
 #endif // MAX5171_ONSPIPRINT
+// Enable the onSPIprint diagnostic at startup (toggle with %SD menu item)
+#ifndef MAX5171_ONSPIPRINT_ENABLED
+#define MAX5171_ONSPIPRINT_ENABLED 1
+#endif // MAX5171_ONSPIPRINT_ENABLED
 
 #define APPLICATION_ArduinoPinsMonitor 1
 
@@ -1821,9 +1825,9 @@
 //--------------------------------------------------
 // functions tested by SelfTest()
 extern uint16_t fn_MAX5171_DACCodeOfVoltage(double voltageV);
-extern double fn_MAX5171_VoltageOfCode(int value_u14);
+extern double fn_MAX5171_VoltageOfCode(uint16_t value_u14);
 extern void fn_MAX5171_Init(void);
-extern uint8_t fn_MAX5171_CODE_LOAD(int dacCodeLsbs);
+extern uint8_t fn_MAX5171_CODE_LOAD(uint16_t dacCodeLsbs);
 extern uint8_t fn_MAX5171_UPO_HIGH(void);
 extern uint8_t fn_MAX5171_UPO_LOW(void);
 
@@ -1966,7 +1970,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)2.499847412109375), (uint16_t)0x3FFF); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.499847412109375, /* expect: */ (uint16_t)0x3FFF); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.499847412109375, /* expect: */ (uint16_t)0x3FFF); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(2.49969482421875) expect 0x3FFE
@@ -1979,7 +1983,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)2.49969482421875), (uint16_t)0x3FFE); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.49969482421875, /* expect: */ (uint16_t)0x3FFE); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.49969482421875, /* expect: */ (uint16_t)0x3FFE); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(2.499542236328125) expect 0x3FFD
@@ -1992,7 +1996,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)2.499542236328125), (uint16_t)0x3FFD); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.499542236328125, /* expect: */ (uint16_t)0x3FFD); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.499542236328125, /* expect: */ (uint16_t)0x3FFD); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(2.4993896484375) expect 0x3FFC
@@ -2005,7 +2009,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)2.4993896484375), (uint16_t)0x3FFC); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.4993896484375, /* expect: */ (uint16_t)0x3FFC); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)2.4993896484375, /* expect: */ (uint16_t)0x3FFC); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(1.250152587890625) expect 0x2001
@@ -2018,7 +2022,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)1.250152587890625), (uint16_t)0x2001); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.250152587890625, /* expect: */ (uint16_t)0x2001); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.250152587890625, /* expect: */ (uint16_t)0x2001); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(1.25) expect 0x2000
@@ -2031,7 +2035,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)1.25), (uint16_t)0x2000); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.25, /* expect: */ (uint16_t)0x2000); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.25, /* expect: */ (uint16_t)0x2000); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(1.249847412109375) expect 0x1FFF
@@ -2044,7 +2048,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)1.249847412109375), (uint16_t)0x1FFF); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.249847412109375, /* expect: */ (uint16_t)0x1FFF); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.249847412109375, /* expect: */ (uint16_t)0x1FFF); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(1.24969482421875) expect 0x1FFE
@@ -2057,7 +2061,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)1.24969482421875), (uint16_t)0x1FFE); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.24969482421875, /* expect: */ (uint16_t)0x1FFE); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)1.24969482421875, /* expect: */ (uint16_t)0x1FFE); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(0.000457763671875) expect 0x0003
@@ -2070,7 +2074,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)0.000457763671875), (uint16_t)0x0003); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.000457763671875, /* expect: */ (uint16_t)0x0003); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.000457763671875, /* expect: */ (uint16_t)0x0003); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(0.00030517578125) expect 0x0002
@@ -2083,7 +2087,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)0.00030517578125), (uint16_t)0x0002); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.00030517578125, /* expect: */ (uint16_t)0x0002); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.00030517578125, /* expect: */ (uint16_t)0x0002); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(0.000152587890625) expect 0x0001
@@ -2096,7 +2100,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)0.000152587890625), (uint16_t)0x0001); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.000152587890625, /* expect: */ (uint16_t)0x0001); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.000152587890625, /* expect: */ (uint16_t)0x0001); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage DACCodeOfVoltage(0.00000) expect 0x0000
@@ -2109,7 +2113,7 @@
 #if MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage DACCodeOfVoltage 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.DACCodeOfVoltage((double)0.00000), (uint16_t)0x0000); // 
-    tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.00000, /* expect: */ (uint16_t)0x0000); // 
+    tinyTester.FunctionCall_u_f_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, (double)0.00000, /* expect: */ (uint16_t)0x0000); // 
 #endif // MAX5171_SELFTEST_DACCodeOfVoltage // group DACCodeOfVoltage
 
     // @test group DACCodeOfVoltage tinyTester.blink_time_msec = 75 // default 75 resume hardware self test
@@ -2190,7 +2194,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x3FFF), (double)2.499847412109375); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFF, /* expect: */ (double)2.499847412109375); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFF, /* expect: */ (double)2.499847412109375); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x3FFE) expect 2.49969482421875
@@ -2203,7 +2207,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x3FFE), (double)2.49969482421875); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFE, /* expect: */ (double)2.49969482421875); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFE, /* expect: */ (double)2.49969482421875); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x3FFD) expect 2.499542236328125
@@ -2216,7 +2220,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x3FFD), (double)2.499542236328125); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFD, /* expect: */ (double)2.499542236328125); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFD, /* expect: */ (double)2.499542236328125); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x3FFC) expect 2.4993896484375
@@ -2229,7 +2233,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x3FFC), (double)2.4993896484375); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFC, /* expect: */ (double)2.4993896484375); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x3FFC, /* expect: */ (double)2.4993896484375); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x2001) expect 1.250152587890625
@@ -2242,7 +2246,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x2001), (double)1.250152587890625); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x2001, /* expect: */ (double)1.250152587890625); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x2001, /* expect: */ (double)1.250152587890625); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x2000) expect 1.25
@@ -2255,7 +2259,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x2000), (double)1.25); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x2000, /* expect: */ (double)1.25); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x2000, /* expect: */ (double)1.25); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x1FFF) expect 1.249847412109375
@@ -2268,7 +2272,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x1FFF), (double)1.249847412109375); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x1FFF, /* expect: */ (double)1.249847412109375); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x1FFF, /* expect: */ (double)1.249847412109375); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x1FFE) expect 1.24969482421875
@@ -2281,7 +2285,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x1FFE), (double)1.24969482421875); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x1FFE, /* expect: */ (double)1.24969482421875); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x1FFE, /* expect: */ (double)1.24969482421875); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x0003) expect 0.000457763671875
@@ -2294,7 +2298,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x0003), (double)0.000457763671875); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0003, /* expect: */ (double)0.000457763671875); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0003, /* expect: */ (double)0.000457763671875); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x0002) expect 0.00030517578125
@@ -2307,7 +2311,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x0002), (double)0.00030517578125); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0002, /* expect: */ (double)0.00030517578125); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0002, /* expect: */ (double)0.00030517578125); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x0001) expect 0.000152587890625
@@ -2320,7 +2324,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x0001), (double)0.000152587890625); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0001, /* expect: */ (double)0.000152587890625); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0001, /* expect: */ (double)0.000152587890625); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode VoltageOfCode(0x0000) expect 0.00000
@@ -2333,7 +2337,7 @@
 #if MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode VoltageOfCode 
     // call-function
     // ASSERT_EQ(g_MAX5171_device.VoltageOfCode((uint16_t)0x0000), (double)0.00000); // 
-    tinyTester.FunctionCall_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0000, /* expect: */ (double)0.00000); // 
+    tinyTester.FunctionCall_f_u_Expect("MAX5171.VoltageOfCode", fn_MAX5171_VoltageOfCode, (uint16_t)0x0000, /* expect: */ (double)0.00000); // 
 #endif // MAX5171_SELFTEST_VoltageOfCode // group VoltageOfCode
 
     // @test group VoltageOfCode tinyTester.blink_time_msec = 75 // default 75 resume hardware self test
@@ -2733,12 +2737,12 @@
 // selfTestFunctionClosures[functionName]['argListDeclaration'] = 'uint16_t value_u14'
 // selfTestFunctionClosures[functionName]['returnType'] = 'double'
 // selfTestFunctionClosures[functionName]['argNames'] = 'value_u14'
-// CommandParamIn_declaration = 'int value_u14'
+// CommandParamIn_declaration = 'uint16_t value_u14'
 // argNames_recast_implementation = '(uint16_t)value_u14'
 //--------------------------------------------------
 // selftest: define function under test
 // double MAX5171::VoltageOfCode(uint16_t value_u14)
-double fn_MAX5171_VoltageOfCode(int value_u14)
+double fn_MAX5171_VoltageOfCode(uint16_t value_u14)
 {
     return g_MAX5171_device.VoltageOfCode((uint16_t)value_u14);
 }
@@ -2763,12 +2767,12 @@
 // selfTestFunctionClosures[functionName]['argListDeclaration'] = 'uint16_t dacCodeLsbs'
 // selfTestFunctionClosures[functionName]['returnType'] = 'uint8_t'
 // selfTestFunctionClosures[functionName]['argNames'] = 'dacCodeLsbs'
-// CommandParamIn_declaration = 'int dacCodeLsbs'
+// CommandParamIn_declaration = 'uint16_t dacCodeLsbs'
 // argNames_recast_implementation = '(uint16_t)dacCodeLsbs'
 //--------------------------------------------------
 // selftest: define function under test
 // uint8_t MAX5171::CODE_LOAD(uint16_t dacCodeLsbs)
-uint8_t fn_MAX5171_CODE_LOAD(int dacCodeLsbs)
+uint8_t fn_MAX5171_CODE_LOAD(uint16_t dacCodeLsbs)
 {
     return g_MAX5171_device.CODE_LOAD((uint16_t)dacCodeLsbs);
 }
@@ -3136,7 +3140,7 @@
                         if (misoLength > 0)
                         {
                             // hex dump misoData[0..byteCount-1]
-                            cmdLine.serial().printf("  MISO<-");
+                            cmdLine.serial().printf(" MISO<-");
                             for (unsigned int byteIndex = 0; byteIndex < g_I2C_read_count;
                                  byteIndex++)
                             {
@@ -3274,12 +3278,12 @@
                     // %SD -- SPI diagnostic messages enable
                     if (g_MAX5171_device.onSPIprint) {
                         g_MAX5171_device.onSPIprint = NULL;
-                        // no g_MAX5171_device.futility_countdown_limit property; device_has_property(Device, 'futility_countdown_limit') != None is false
+                        // no g_MAX5171_device.loop_limit property; device_has_property(Device, 'loop_limit') != None is false
                     }
                     else {
                         void onSPIprint_handler(size_t byteCount, uint8_t mosiData[], uint8_t misoData[]);
                         g_MAX5171_device.onSPIprint = onSPIprint_handler;
-                        // no g_MAX5171_device.futility_countdown_limit property; device_has_property(Device, 'futility_countdown_limit') is false
+                        // no g_MAX5171_device.loop_limit property; device_has_property(Device, 'loop_limit') is false
                     }
                     break;
                 case 'W': case 'R': case 'w': case 'r':
@@ -3309,7 +3313,7 @@
                             spi.write(mosiData, byteCount, misoData, byteCount);
                         spi_cs = 1;
                         // hex dump misoData[0..byteCount-1]
-                        cmdLine.serial().printf("  MISO<-");
+                        cmdLine.serial().printf(" MISO<-");
                         for (unsigned int byteIndex = 0; byteIndex < numBytesTransferred;
                              byteIndex++)
                         {
@@ -3566,7 +3570,7 @@
     for (uint8_t index = 0; index < byteCount; index++) {
         cmdLine_serial.serial().printf(" 0x%2.2X", mosiData[index]);
     }
-    cmdLine_serial.serial().printf("  MISO<-");
+    cmdLine_serial.serial().printf(" MISO<-");
     for (uint8_t index = 0; index < byteCount; index++) {
         cmdLine_serial.serial().printf(" 0x%2.2X", misoData[index]);
     }
@@ -3587,9 +3591,13 @@
     g_MAX5171_device.Init();     // defined in #include MAX5171.h
 # if MAX5171_ONSPIPRINT
   // Optional Diagnostic function to print SPI transactions
+#  if MAX5171_ONSPIPRINT_ENABLED
   g_MAX5171_device.onSPIprint = onSPIprint_handler;
+#  else
+  g_MAX5171_device.onSPIprint = NULL;
+#  endif
 # endif
-}
+} // end of void InitializeConfiguration()
 
 //--------------------------------------------------
 // diagnostic rbg led GREEN
diff -r abd02fed1ae4 -r 3ef3dd32c7b5 Test_Menu_MAX5171.cpp
--- a/Test_Menu_MAX5171.cpp	Fri Apr 03 06:27:43 2020 +0000
+++ b/Test_Menu_MAX5171.cpp	Fri May 15 08:38:12 2020 +0000
@@ -137,7 +137,7 @@
         case '@':
         {
                     cmdLine.serial().printf("VRef = ");
-                    cmdLine.serial().printf("%f\r\n", g_MAX5171_device.VRef);
+                    cmdLine.serial().printf("%1.6f\r\n", g_MAX5171_device.VRef);
                     cmdLine.serial().printf("DACCode = ");
                     cmdLine.serial().printf("%d = 0x%4.4x\r\n", g_MAX5171_device.DACCode, g_MAX5171_device.DACCode);
                     return true; // command handled by MAX5171