Adafruit MAX31850 DallasTemp Library
Classes | Macros | Typedefs
DallasTemperature.h File Reference
#include <OneWire.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

class  DallasTemperature
 DallasTemperature class. More...
 

Macros

#define DALLASTEMPLIBVERSION   "3.7.2"
 Version of the library.
 
#define REQUIRESNEW   false
 set to true to include code for new and delete operators
 
#define REQUIRESALARMS   true
 set to true to include code implementing alarm search functions
 
#define DS18S20MODEL   0x10
 DS18S20 model ID.
 
#define DS18B20MODEL   0x28
 DS18B20 model ID.
 
#define DS1822MODEL   0x22
 DS1822 model ID.
 
#define MAX31850MODEL   0x3B
 MAX31850 model ID.
 
#define STARTCONVO   0x44
 scratchpad More...
 
#define COPYSCRATCH   0x48
 Copy EEPROM.
 
#define READSCRATCH   0xBE
 Read EEPROM.
 
#define WRITESCRATCH   0x4E
 Write to EEPROM.
 
#define RECALLSCRATCH   0xB8
 Reload from last known.
 
#define READPOWERSUPPLY   0xB4
 Determine if device needs parasite power.
 
#define ALARMSEARCH   0xEC
 Query bus for devices with an alarm condition.
 
#define TEMP_LSB   0
 Temperature LSB byte location.
 
#define TEMP_MSB   1
 Temperature MSB byte location.
 
#define HIGH_ALARM_TEMP   2
 High alarm temp byte location.
 
#define LOW_ALARM_TEMP   3
 Low alarm temp byte location.
 
#define CONFIGURATION   4
 DS18S20: store for CRC. DS18B20 & DS1822: configuration register.
 
#define INTERNAL_BYTE   5
 Internal use & CRC.
 
#define COUNT_REMAIN   6
 DS18S20: COUNT_REMAIN, DS18B20 & DS1822: store for CRC.
 
#define COUNT_PER_C   7
 DS18S20: COUNT_PER_C. DS18B20 & DS1822: store for crc.
 
#define SCRATCHPAD_CRC   8
 Scratchpad CRC.
 
#define TEMP_9_BIT   0x1F
 9 bit resolution
 
#define TEMP_10_BIT   0x3F
 10 bit resolution
 
#define TEMP_11_BIT   0x5F
 11 bit resolution
 
#define TEMP_12_BIT   0x7F
 12 bit resolution
 
#define DEVICE_DISCONNECTED   -127
 Device disconnected error code.
 

Typedefs

typedef uint8_t DeviceAddress[8]
 Device address.
 

Macro Definition Documentation

◆ STARTCONVO

#define STARTCONVO   0x44

scratchpad

Tells device to take a temperature reading and put it on the