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:
64:a667cfd83492
Parent:
63:8f39d21d6157
Child:
66:3fe92f6f1cfa
--- a/MAX11043/MAX11043.cpp	Tue Feb 18 09:25:29 2020 +0000
+++ b/MAX11043/MAX11043.cpp	Wed Feb 19 00:52:33 2020 +0000
@@ -1069,6 +1069,50 @@
 }
 
 //----------------------------------------
+// Menu item '$' -> adca, adcb, adcc, adcd
+// Read ADCabcd
+//
+// @return 1 on success; 0 on failure
+uint8_t MAX11043::Read_ADCabcd(void)
+{
+    
+    //----------------------------------------
+    // warning -- WIP work in progress
+    #warning "Not Tested Yet: MAX11043::Read_ADCabcd..."
+    
+    //----------------------------------------
+    // read register ADCabcd -> &adca, &adcb, &adcc, &adcd
+    RegRead(CMD_0001_1010_d16o8_d16o8_d16o8_d16o8_Rd06_ADCabcd, 0);
+    
+    //----------------------------------------
+    // success
+    return 1;
+}
+
+//----------------------------------------
+// Menu item 'JA'
+// Write AGain register
+//
+// @param[in] gain 2's complement, 0x800=0.25V/V, 0x1000=0.5V/V, 0x2000=1VV/V, 0x4000=2V/V, default=0x2000
+//
+// @return 1 on success; 0 on failure
+uint8_t MAX11043::Write_AGain(uint32_t gain)
+{
+    
+    //----------------------------------------
+    // warning -- WIP work in progress
+    #warning "Not Tested Yet: MAX11043::Write_AGain..."
+    
+    //----------------------------------------
+    // write register
+    RegWrite(CMD_0100_0100_d16_Wr11_AGain, gain);
+    
+    //----------------------------------------
+    // success
+    return 1;
+}
+
+//----------------------------------------
 // Menu item 'XX'
 //
 // @return 1 on success; 0 on failure