Sample host software for the Maxim Integrated DS1775, DS75 Digital Thermometer Thermostat IC hosted on the MAX32630FTHR. The DS1775 is suitable for PCs, cell phones, and other thermally sensitive systems.

Dependencies:   max32630fthr DS1775_Digitial_Thermometer_Thermostat USBDevice

Revision:
14:8ca56fd6b35e
Parent:
11:505d7cf8587a
Child:
16:1ebf8a6248be
--- a/main.cpp	Mon Apr 08 02:41:27 2019 +0000
+++ b/main.cpp	Mon Apr 08 17:03:00 2019 +0000
@@ -48,7 +48,7 @@
 // (note the calls to Thread::wait below for delays)
 /**
 * @brief Sample main program for DS1775
-* @version 1.0000.0001
+* @version 1.0000.0002
 *
 * @details Sample main program for DS1775
 * The prints are sent to the terminal window (9600, 8n1).
@@ -92,13 +92,13 @@
     printf("Configuration Register = 0x%02Xh \r\n", cfg);
     
 #if 0
-    temp_sensor.write_trip_low(-63.9375);
+    temp_sensor.write_trip_low_thyst(-63.9375);
     temperature =
         temp_sensor.read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP);
     printf("Thyst Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, temp_sensor.celsius_to_fahrenheit(temperature));
 
-    temp_sensor.write_trip_high(64.0625f);
+    temp_sensor.write_trip_high_tos(64.0625f);
     temperature = temp_sensor.read_reg_as_temperature(DS1775_REG_TOS_HIGH_TRIP);
     printf("TOS Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, temp_sensor.celsius_to_fahrenheit(temperature));
@@ -130,13 +130,13 @@
     printf("\r\n\r\n");
 
 #if 0
-    temp_sensor.write_trip_low(-55.0f);
+    temp_sensor.write_trip_low_thyst(-55.0f);
     temperature = 
         temp_sensor.read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP);
     printf("Thyst Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, temp_sensor.celsius_to_fahrenheit(temperature));
 
-    temp_sensor.write_trip_high(125.0f);
+    temp_sensor.write_trip_high_tos(125.0f);
     temperature = temp_sensor.read_reg_as_temperature(DS1775_REG_TOS_HIGH_TRIP);
     printf("TOS Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, temp_sensor.celsius_to_fahrenheit(temperature));
@@ -168,13 +168,13 @@
     printf("Configuration Register = 0x%02Xh \r\n", cfg);
 
 #if 0
-    ds1775_write_trip_low(-63.9375, i2cBus);
+    ds1775_write_trip_low_thyst(-63.9375, i2cBus);
     temperature = ds1775_read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP,
         i2cBus);
     printf("Thyst Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, ds1775_celsius_to_fahrenheit(temperature));
 
-    ds1775_write_trip_high(64.0625f, i2cBus);
+    ds1775_write_trip_high_tos(64.0625f, i2cBus);
     temperature = ds1775_read_reg_as_temperature(DS1775_REG_TOS_HIGH_TRIP,
         i2cBus);
     printf("TOS Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
@@ -204,13 +204,13 @@
     printf("Configuration Register = 0x%02Xh \r\n", cfg);
 
 #if 0
-    ds1775_write_trip_low(-55, i2cBus);
+    ds1775_write_trip_low_thyst(-55, i2cBus);
     temperature = ds1775_read_reg_as_temperature(DS1775_REG_THYST_LOW_TRIP,
         i2cBus);
     printf("Thyst Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n", 
             temperature, ds1775_celsius_to_fahrenheit(temperature));
 
-    ds1775_write_trip_high(125.0f, i2cBus);
+    ds1775_write_trip_high_tos(125.0f, i2cBus);
     temperature = ds1775_read_reg_as_temperature(DS1775_REG_TOS_HIGH_TRIP,
         i2cBus);
     printf("TOS Temperature = %3.4f Celsius, %3.4f Fahrenheit\r\n",