Adafruit MCP960x Library
Classes | Macros | Typedefs | Enumerations
Adafruit_MCP9600.h File Reference
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
#include <Arduino.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_MCP9600
 MCP9600 driver. More...
 

Macros

#define MCP9600_I2CADDR_DEFAULT   0x67
 I2C address. More...
 
#define MCP9600_HOTJUNCTION   0x00
 Hot junction temperature T_H.
 
#define MCP9600_JUNCTIONDELTA   0x01
 Hot/Cold junction delta.
 
#define MCP9600_COLDJUNCTION   0x02
 Cold junction temperature T_C.
 
#define MCP9600_RAWDATAADC   0x03
 The 'raw' uV reading.
 
#define MCP9600_STATUS   0x04
 Current device status.
 
#define MCP9600_SENSORCONFIG   0x05
 Configuration for thermocouple type.
 
#define MCP9600_DEVICECONFIG   0x06
 Device config like sleep mode.
 
#define MCP9600_DEVICEID   0x20
 Device ID/Revision.
 
#define MCP9600_ALERTCONFIG_1   0x08
 The first alert's config.
 
#define MCP9600_ALERTHYST_1   0x0C
 The first alert's hystersis.
 
#define MCP9600_ALERTLIMIT_1   0x10
 the first alert's limitval
 
#define MCP960X_STATUS_ALERT1   0x01
 Bit flag for alert 1 status.
 
#define MCP960X_STATUS_ALERT2   0x02
 Bit flag for alert 2 status.
 
#define MCP960X_STATUS_ALERT3   0x04
 Bit flag for alert 3 status.
 
#define MCP960X_STATUS_ALERT4   0x08
 Bit flag for alert 4 status.
 
#define MCP960X_STATUS_INPUTRANGE   0x10
 Bit flag for input range.
 
#define MCP960X_STATUS_THUPDATE   0x40
 Bit flag for TH update.
 
#define MCP960X_STATUS_BURST   0x80
 Bit flag for burst complete.
 

Typedefs

typedef enum _themotype MCP9600_ThemocoupleType
 
typedef enum _resolution MCP9600_ADCResolution
 

Enumerations

enum  _themotype {
  MCP9600_TYPE_K, MCP9600_TYPE_J, MCP9600_TYPE_T, MCP9600_TYPE_N,
  MCP9600_TYPE_S, MCP9600_TYPE_E, MCP9600_TYPE_B, MCP9600_TYPE_R
}
 
enum  _resolution { MCP9600_ADCRESOLUTION_18, MCP9600_ADCRESOLUTION_16, MCP9600_ADCRESOLUTION_14, MCP9600_ADCRESOLUTION_12 }
 

Detailed Description

Author: K. Townsend (Adafruit Industries) License: BSD (see license.txt)

This is a library for the Aadafruit MCP9600 I2C Thermocouple breakout board -—> http://www.adafruit.com/products/

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Macro Definition Documentation

◆ MCP9600_I2CADDR_DEFAULT

#define MCP9600_I2CADDR_DEFAULT   0x67

I2C address.

Default MCP9600 I2C address.

Typedef Documentation

◆ MCP9600_ThemocoupleType

The possible Thermocouple types

◆ MCP9600_ADCResolution

The possible ADC resolution settings

Enumeration Type Documentation

◆ _themotype

enum _themotype

The possible Thermocouple types

◆ _resolution

The possible ADC resolution settings