Internal addresses, registers and constants. More...

Detailed Description

Internal addresses, registers and constants.

Author
David Picard

Definition in file max31865_internal.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX31865_DATA_SIZE   (8)
 Maximum number of bytes that can be read/written from/to the device.
 
#define MAX31865_REF_RESISTANCE_DEFAULT   (220)
 Reference resistance (ohm)
 
#define MAX31865_HTHRES_DEFAULT   (0xFFFF)
 Default value of the high threshold register.
 
#define MAX31865_LTHRES_DEFAULT   (0x0000)
 Default value of the low threshold register.
 
#define MAX31865_ADDR_CFG_R   (0x00)
 Configuration register, read address.
 
#define MAX31865_ADDR_CFG_W   (0x80)
 Configuration register, write address.
 
#define MAX31865_ADDR_RTD_MSB   (0x01)
 RTD MSB, read-only.
 
#define MAX31865_ADDR_RTD_LSB   (0x02)
 RTD LSB, read-only.
 
#define MAX31865_ADDR_RTD_HTHRES_MSB_R   (0x03)
 RTD high threshold MSB, read address.
 
#define MAX31865_ADDR_RTD_HTHRES_MSB_W   (0x83)
 RTD high threshold MSB, write address.
 
#define MAX31865_ADDR_RTD_HTHRES_LSB_R   (0x04)
 RTD high threshold LSB, read address.
 
#define MAX31865_ADDR_RTD_HTHRES_LSB_W   (0x84)
 RTD high threshold LSB, write address.
 
#define MAX31865_ADDR_RTD_LTHRES_MSB_R   (0x05)
 RTD low threshold MSB, read address.
 
#define MAX31865_ADDR_RTD_LTHRES_MSB_W   (0x85)
 RTD low threshold MSB, write address.
 
#define MAX31865_ADDR_RTD_LTHRES_LSB_R   (0x06)
 RTD low threshold LSB, read address.
 
#define MAX31865_ADDR_RTD_LTHRES_LSB_W   (0x86)
 RTD low threshold LSB, write address.
 
#define MAX31865_ADDR_FAULT   (0x07)
 Fault status register, read-only.
 
#define MAX31865_CFG_VBIAS_ON   (0b10000000)
 Enable Vbias.
 
#define MAX31865_CFG_CONV_AUTO   (0b01000000)
 Enable automatic conversion mode. More...
 
#define MAX31865_CFG_1SHOT   (0b00100000)
 Trigger a single conversion. More...
 
#define MAX31865_CFG_3WIRE   (0b00010000)
 3-wire resistor connection More...
 
#define MAX31865_CFG_CLEAR_FAULT   (0b00000010)
 Clear fault condition.
 
#define MAX31865_CFG_FILTER_50HZ   (0b00000001)
 Filter out 50Hz if set, or 60Hz otherwise. More...
 
#define MAX31865_CFG_FLTDET_MASK   (0b00001100)
 Fault detection bit mask. More...
 
#define MAX31865_CFG_FLTDET_IDLE   (0b00000000)
 No fault detection is running.
 
#define MAX31865_CFG_FLTDET_AUTO_START   (0b00000100)
 Start a fault detection with an automatic delay (about 550µs)
 
#define MAX31865_CFG_FLTDET_MANU_START   (0b00001000)
 Start a fault detection with a manually controlled delay.
 
#define MAX31865_CFG_FLTDET_MANU_STOP   (0b00001100)
 Terminate fault detection with a manually controlled delay.
 
#define MAX31865_FLT_THRESHIGH   (0b10000000)
 Fault: RTD is greater than the high threshold.
 
#define MAX31865_FLT_THRESLOW   (0b01000000)
 Fault: RTD is less than the low threshold.
 
#define MAX31865_FLT_REF_FC   (0b00100000)
 Fault: VREFIN- > 0.85 × VBIAS when FORCE- is closed.
 
#define MAX31865_FLT_REF_FO   (0b00010000)
 Fault: VREFIN- < 0.85 × VBIAS when FORCE- is open.
 
#define MAX31865_FLT_RTD_FO   (0b00001000)
 Fault: VRTDIN- < 0.85 × × VBIAS when FORCE- is open.
 
#define MAX31865_FLT_VOLTAGE   (0b00000100)
 Fault: overvoltage or undervoltage condition. More...