minimalist hardware testing support

Dependents:   MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more

Revision:
17:65fb4afe4991
Parent:
16:bb4b003a5cd2
Child:
18:9874cd1e6cb0
--- a/MaximTinyTester.h	Sat May 29 03:14:33 2021 -0700
+++ b/MaximTinyTester.h	Tue Jun 01 19:43:11 2021 -0700
@@ -94,6 +94,10 @@
     */
     double err_threshold;
 
+    /** mask determines which bits must match the expected value
+    */
+    int mask;
+
     void clear();
 
     /** serial returns reference to the associated serial port */
@@ -157,6 +161,10 @@
         Callback<int()> functionUnderTest,
         int expect_result);
 
+    bool FunctionCall_md_Expect(const char *nameOfFunctionUnderTest, 
+        Callback<int16_t()> functionUnderTest,
+        int16_t expect_result);
+
     bool FunctionCall_su_Expect(const char *nameOfFunctionUnderTest, 
         Callback<uint8_t()> functionUnderTest,
         uint8_t expect_result);