C code and C++ library, driver software for Maxim Integrated DS1775, DS75 thermometer and thermostat temperature sensor. Code supports continuous or shut-down/standby, hysteresis, alarm limits, comparator or interrupt mode, fault filtering, and active low/high. Compact 5-pin SOT23 packaging
Dependents: DS1775_Digital_Thermostat_Temperature
Diff: ds1775.h
- Revision:
- 19:ccd43cedfd47
- Parent:
- 15:449134e4b43f
- Child:
- 20:cf75ff9e5560
--- a/ds1775.h Mon Apr 08 17:02:40 2019 +0000 +++ b/ds1775.h Mon Apr 08 20:18:50 2019 +0000 @@ -75,14 +75,6 @@ #define DS1775_CFG_RESOLUTION_11BIT (0x02 << 5) #define DS1775_CFG_RESOLUTION_12BIT (0x03 << 5) - - - - - -#define DS1775_CFG_OVER_TEMP_MASK (0x80) - - #define DS1775_I2C_SLAVE_ADR_R0 (0x90 >> 1) // code uses the 7 bit address #define DS1775_I2C_SLAVE_ADR_R1 (0x92 >> 1) #define DS1775_I2C_SLAVE_ADR_R2 (0x94 >> 1) @@ -109,8 +101,5 @@ uint16_t uwrd; int16_t swrd; }; -#define DS1775_U16_MAX ((uint16_t)~0U) -#define DS1775_S16_MAX ((int16_t)(DS1775_U16_MAX>>1)) -#define DS1775_S16_MIN ((int16_t)(-DS1775_S16_MAX - 1)) #endif/* MAX31875_H */ \ No newline at end of file