Qwiic_MCP9600_Py  2.0.0-1-gc0a27b2
Python for SFE Qwiic MCP9600
Loading...
Searching...
No Matches
qwiic_mcp9600.QwiicMCP9600 Class Reference
Inheritance diagram for qwiic_mcp9600.QwiicMCP9600:

Public Member Functions

def __init__ (self, address=None, i2c_driver=None)
 Constructor. More...
 
def available (self)
 Returns true if the thermocouple (hot) junction temperature has been updated since we last checked. More...
 
def is_connected (self)
 Determines if this device is connected. More...
 
def begin (self)
 Initializes this device with default parameters. More...
 
def check_device_id (self)
 Returns true if the constant upper 8 bits in the device ID register are what they should be according to the datasheet. More...
 
def read_block_retry (self, register, num_bytes)
 Attempt to read the register until we exit with no error code This attempts to fix the bug where clock stretching sometimes failes, as described in the MCP9600 eratta. More...
 
def write_double_register (self, register, value)
 Writes a 16-bit value to a register. More...
 
def reset_to_defaults (self)
 Resets all device parameters to their default values. More...
 
def get_thermocouple_temp (self, units=True)
 Returns the thermocouple temperature, and clears the data ready bit. More...
 
def get_ambient_temp (self, units=True)
 Returns the ambient (IC die) temperature. More...
 
def get_temp_delta (self, units=True)
 Returns the difference in temperature between the thermocouple and ambient junctions. More...
 
def get_raw_adc (self)
 Returns the raw contents of the raw ADC register. More...
 
def is_input_range_exceeded (self)
 Returns true if the input range has been exceeded. More...
 
def set_ambient_resolution (self, res)
 Changes the resolution on the cold (ambient) junction, for either 0.0625 or 0.25 degree C resolution. More...
 
def get_ambient_resolution (self)
 Returns the resolution on the cold (ambient) junction, for either 0.0625 or 0.25 degree C resolution. More...
 
def set_thermocouple_resolution (self, res)
 Changes the resolution on the hot (thermocouple) junction, for either 18, 16, 14, or 12-bit resolution. More...
 
def get_thermocouple_resolution (self)
 Returns the resolution on the hot (thermocouple) junction, for either 18, 16, 14, or 12-bit resolution. More...
 
def set_thermocouple_type (self, type)
 Changes the type of thermocouple connected to the MCP9600. More...
 
def get_thermocouple_type (self)
 Returns the type of thermocouple connected to the MCP9600 as found in its configuration register. More...
 
def set_filter_coefficient (self, filter)
 Changes the weight of the on-chip exponential moving average filter. More...
 
def get_filter_coefficient (self)
 Returns the weight of the on-chip exponential moving average filter. More...
 
def set_burst_samples (self, samples)
 Changes the amount of samples to take in burst mode. More...
 
def get_burst_samples (self)
 Returns the amount of samples to take in burst mode, according to the device's configuration register. More...
 
def burst_available (self)
 Checks if burst mode data is available. More...
 
def start_burst (self)
 Initiates a burst on the MCP9600. More...
 
def set_shutdown_mode (self, mode)
 Changes the shutdown "operating" mode of the MCP9600. More...
 
def get_shutdown_mode (self, mode)
 Returns the shutdown "operating" mode of the MCP9600. More...
 
def config_alert_temp (self, number, temp)
 Configures the temperature at which to trigger the alert for a given alert number. More...
 
def config_alert_junction (self, number, junction)
 Configures the junction to monitor the temperature of to trigger the alert. More...
 
def config_alert_hysteresis (self, number, hysteresis)
 Configures the hysteresis to use around the temperature set point, in degrees Celsius. More...
 
def config_alert_edge (self, number, edge)
 Configures whether to trigger the alert on the rising (cold -> hot) or falling (hot -> cold) edge of the temperature change. More...
 
def config_alert_logic_level (self, number, level)
 Configures whether the hardware alert pin is active-high or active-low. More...
 
def config_alert_mode (self, number, mode)
 Configures whether the MCP9600 treats the alert like a comparator or an interrrupt. More...
 
def config_alert_enable (self, number, enable)
 Configures whether or not the interrupt is enabled or not. More...
 
def clear_alert_pin (self, number)
 Clears the interrupt on the specified alert channel, resetting the value of the pin. More...
 
def is_temp_greater_than_limit (self, number)
 Returns true if the interrupt has been triggered, false otherwise. More...
 

Public Attributes

 address
 

Static Public Attributes

 device_name = _DEFAULT_NAME
 
 available_addresses = _AVAILABLE_I2C_ADDRESS
 
int kDeviceIdUpper = 0x40
 
float kDeviceResolution = 0.0625
 
int kRetryAttempts = 3
 
int kRegisterHotJuncTemp = 0x00
 
int kRegisterDeltaJuncTemp = 0x01
 
int kRegisterColdJuncTemp = 0x02
 
int kRegisterRawAdc = 0x03
 
int kRegisterSensorStatus = 0x04
 
int kRegisterThermoSensorConfig = 0x05
 
int kRegisterDeviceConfig = 0x06
 
int kRegisterAlert1Config = 0x08
 
int kRegisterAlert2Config = 0x09
 
int kRegisterAlert3Config = 0x0A
 
int kRegisterAlert4Config = 0x0B
 
int kRegisterAlert1Hysteresis = 0x0C
 
int kRegisterAlert2Hysteresis = 0x0D
 
int kRegisterAlert3Hysteresis = 0x0E
 
int kRegisterAlert4Hysteresis = 0x0F
 
int kRegisterAlert1Limit = 0x10
 
int kRegisterAlert2Limit = 0x11
 
int kRegisterAlert3Limit = 0x12
 
int kRegisterAlert4Limit = 0x13
 
int kRegisterDeviceId = 0x20
 
int kTypeK = 0b000
 
int kTypeJ = 0b001
 
int kTypeT = 0b010
 
int kTypeN = 0b011
 
int kTypeS = 0b100
 
int kTypeE = 0b101
 
int kTypeB = 0b110
 
int kTypeR = 0b111
 
int kAmbientResolutionZeroPoint0625 = 0
 
int kAmbientResolutionZeroPoint25 = 1
 
int kThermocoupleResolution18Bit = 0b00
 
int kThermocoupleResolution16Bit = 0b01
 
int kThermocoupleResolution14Bit = 0b10
 
int kThermocoupleResolution12Bit = 0b11
 
int kBurstSample1 = 0b000
 
int kBurstSample2 = 0b001
 
int kBurstSample4 = 0b010
 
int kBurstSample8 = 0b011
 
int kBurstSample16 = 0b100
 
int kBurstSample32 = 0b101
 
int kBurstSample64 = 0b110
 
int kBurstSample128 = 0b111
 
int kShutdownModeNormal = 0x00
 
int kShutdownModeShutdown = 0x01
 
int kShutdownModeBurst = 0x02
 
int kStatusShiftAlert1 = 0
 
int kStatusShiftAlert2 = 1
 
int kStatusShiftAlert3 = 2
 
int kStatusShiftAlert4 = 3
 
int kShiftInputRange = 4
 
int kShiftDataReady = 6
 
int kShiftBurstComplete = 7
 
int kStatusMaskAlert1 = 0b1 << kStatusShiftAlert1
 
int kStatusMaskAlert2 = 0b1 << kStatusShiftAlert2
 
int kStatusMaskAlert3 = 0b1 << kStatusShiftAlert3
 
int kStatusMaskAlert4 = 0b1 << kStatusShiftAlert4
 
int kMaskInputRange = 0b11 << kShiftInputRange
 
int kMaskDataReady = 0b1 << kShiftDataReady
 
int kMaskBurstComplete = 0b1 << kShiftBurstComplete
 
int kConfigShiftShutdownMode = 0
 
int kConfigShiftBurstModeSample = 2
 
int kConfigShiftADCResolution = 5
 
int kConfigShiftColdJuncRes = 7
 
int kConfigMaskShutdownMode = 0b11 << kConfigShiftShutdownMode
 
int kConfigMaskBurstModeSample = 0b111 << kConfigShiftBurstModeSample
 
int kConfigMaskADCResolution = 0b11 << kConfigShiftADCResolution
 
int kConfigMaskColdJuncRes = 0b1 << kConfigShiftColdJuncRes
 
int kThermoSensorConfigShiftFilter = 0
 
int kThermoSensorConfigShiftType = 4
 
int kThermoSensorConfigMaskFilter = 0b111 << kThermoSensorConfigShiftFilter
 
int kThermoSensorConfigMaskType = 0b111 << kThermoSensorConfigShiftType
 
int kAlertLimitShiftSignBit = 15
 
int kAlertLimitMaskSignBit = 0b1 << kAlertLimitShiftSignBit
 
int kAlertConfigShiftEnable = 0
 
int kAlertConfigShiftCompIntMode = 1
 
int kAlertConfigShiftActiveHigh = 2
 
int kAlertConfigShiftRising = 3
 
int kAlertConfigShiftJuncHot = 4
 
int kAlertConfigShiftIntClear = 7
 
int kAlertConfigMaskEnable = 0b1 << kAlertConfigShiftEnable
 
int kAlertConfigMaskCompIntMode = 0b1 << kAlertConfigShiftCompIntMode
 
int kAlertConfigMaskActiveHigh = 0b1 << kAlertConfigShiftActiveHigh
 
int kAlertConfigMaskRising = 0b1 << kAlertConfigShiftRising
 
int kAlertConfigMaskJuncHot = 0b1 << kAlertConfigShiftJuncHot
 
int kAlertConfigMaskIntClear = 0b1 << kAlertConfigShiftIntClear
 

Properties

 connected = property(is_connected)
 

Constructor & Destructor Documentation

◆ __init__()

def qwiic_mcp9600.QwiicMCP9600.__init__ (   self,
  address = None,
  i2c_driver = None 
)

Constructor.

Parameters
int,optionaladdress: The I2C address to use for the device If not provided, the default address is used
I2CDriver,optionali2c_driver: An existing i2c driver object If not provided, a driver object is created

Member Function Documentation

◆ available()

def qwiic_mcp9600.QwiicMCP9600.available (   self)

Returns true if the thermocouple (hot) junction temperature has been updated since we last checked.

Also referred to as the data ready bit.

Returns
bool True if the data is ready, otherwise False

◆ begin()

def qwiic_mcp9600.QwiicMCP9600.begin (   self)

Initializes this device with default parameters.

Returns
bool Returns True if successful, otherwise False

From Arduino Lib: The MCP9600 is a fussy device. If we call isConnected twice in succession, the second call fails as the MCP9600 does not ACK on the second call. Only on the first. So we should not call is_connected here(). We should only call check_device_id().

◆ burst_available()

def qwiic_mcp9600.QwiicMCP9600.burst_available (   self)

Checks if burst mode data is available.

Returns
bool Returns True if all the burst samples have been taken and the results are ready. Returns False otherwise.

◆ check_device_id()

def qwiic_mcp9600.QwiicMCP9600.check_device_id (   self)

Returns true if the constant upper 8 bits in the device ID register are what they should be according to the datasheet.

Returns
bool True if the device ID is correct, otherwise False

◆ clear_alert_pin()

def qwiic_mcp9600.QwiicMCP9600.clear_alert_pin (   self,
  number 
)

Clears the interrupt on the specified alert channel, resetting the value of the pin.

Parameters
intnumber: The alert number (1-4)
Returns
bool True if the alert pin was cleared successfully, otherwise False

◆ config_alert_edge()

def qwiic_mcp9600.QwiicMCP9600.config_alert_edge (   self,
  number,
  edge 
)

Configures whether to trigger the alert on the rising (cold -> hot) or falling (hot -> cold) edge of the temperature change.

Set to True for rising, False for falling.

Parameters
intnumber: The alert number (1-4)
booledge: The edge to trigger the alert on
Returns
bool True if the edge was set successfully, otherwise False

◆ config_alert_enable()

def qwiic_mcp9600.QwiicMCP9600.config_alert_enable (   self,
  number,
  enable 
)

Configures whether or not the interrupt is enabled or not.

Set to True to enable, or False to disable.

Parameters
intnumber: The alert number (1-4)
boolenable: Set to True to enable the alert, False to disable
Returns
bool True if the alert was enabled/disabled successfully, otherwise False

◆ config_alert_hysteresis()

def qwiic_mcp9600.QwiicMCP9600.config_alert_hysteresis (   self,
  number,
  hysteresis 
)

Configures the hysteresis to use around the temperature set point, in degrees Celsius.

Parameters
intnumber: The alert number (1-4)
floathysteresis: The hysteresis value to set
Returns
bool True if the hysteresis was set successfully, otherwise False

◆ config_alert_junction()

def qwiic_mcp9600.QwiicMCP9600.config_alert_junction (   self,
  number,
  junction 
)

Configures the junction to monitor the temperature of to trigger the alert.

Set to fALSE for the thermocouple (hot) junction, or True for the ambient (cold) junction.

Parameters
intnumber: The alert number (1-4)
booljunction: The junction to monitor False for the hot junction, True for the cold junction
Returns
bool True if the junction was set successfully, otherwise False

◆ config_alert_logic_level()

def qwiic_mcp9600.QwiicMCP9600.config_alert_logic_level (   self,
  number,
  level 
)

Configures whether the hardware alert pin is active-high or active-low.

Set to True for active-high, False for active-low.

Parameters
intnumber: The alert number (1-4)
boollevel: The logic level to set
Returns
bool True if the logic level was set successfully, otherwise False

◆ config_alert_mode()

def qwiic_mcp9600.QwiicMCP9600.config_alert_mode (   self,
  number,
  mode 
)

Configures whether the MCP9600 treats the alert like a comparator or an interrrupt.

Set to True for interrupt, False for comparator. More information is on pg. 34 of the datasheet.

Parameters
intnumber: The alert number (1-4)
boolmode: The mode to set the alert to
Returns
bool True if the alert mode was set successfully, otherwise False

◆ config_alert_temp()

def qwiic_mcp9600.QwiicMCP9600.config_alert_temp (   self,
  number,
  temp 
)

Configures the temperature at which to trigger the alert for a given alert number.

Parameters
intnumber: The alert number (1-4)
floattemp: The temperature at which to trigger the alert
Returns
bool True if the alert temperature was set successfully, otherwise False

◆ get_ambient_resolution()

def qwiic_mcp9600.QwiicMCP9600.get_ambient_resolution (   self)

Returns the resolution on the cold (ambient) junction, for either 0.0625 or 0.25 degree C resolution.

Lower resolution reduces conversion time.

Returns
int The resolution of the ambient sensor or -1 on error

◆ get_ambient_temp()

def qwiic_mcp9600.QwiicMCP9600.get_ambient_temp (   self,
  units = True 
)

Returns the ambient (IC die) temperature.

Set units to true for Celsius, or false for Fahrenheit.

Parameters
bool,optionalunits: The units to use for the temperature as specified above
Returns
The temperature of the ambient sensor or -1 on error

◆ get_burst_samples()

def qwiic_mcp9600.QwiicMCP9600.get_burst_samples (   self)

Returns the amount of samples to take in burst mode, according to the device's configuration register.

Returns
int The number of samples to take in burst mode or -1 on error

Possible return values: kBurstSample1 kBurstSample2 kBurstSample4 kBurstSample8 kBurstSample16 kBurstSample32 kBurstSample64 kBurstSample128

◆ get_filter_coefficient()

def qwiic_mcp9600.QwiicMCP9600.get_filter_coefficient (   self)

Returns the weight of the on-chip exponential moving average filter.

Returns
int The filter coefficient or -1 on error

◆ get_raw_adc()

def qwiic_mcp9600.QwiicMCP9600.get_raw_adc (   self)

Returns the raw contents of the raw ADC register.

Returns
The raw ADC value or -1 on error

◆ get_shutdown_mode()

def qwiic_mcp9600.QwiicMCP9600.get_shutdown_mode (   self,
  mode 
)

Returns the shutdown "operating" mode of the MCP9600.

Configurable to Normal, Shutdown, and Burst.

Returns
int The current mode of the device or -1 on error

Possible return values: kShutdownModeNormal kShutdownModeShutdown kShutdownModeBurst

◆ get_temp_delta()

def qwiic_mcp9600.QwiicMCP9600.get_temp_delta (   self,
  units = True 
)

Returns the difference in temperature between the thermocouple and ambient junctions.

Set units to true for Celsius, or false for Fahrenheit.

Parameters
bool,optionalunits: The units to use for the temperature as specified above
Returns
The temperature difference or -1 on error

◆ get_thermocouple_resolution()

def qwiic_mcp9600.QwiicMCP9600.get_thermocouple_resolution (   self)

Returns the resolution on the hot (thermocouple) junction, for either 18, 16, 14, or 12-bit resolution.

Lower resolution reduces conversion time.

Returns
int The resolution of the thermocouple sensor or -1 on error

Possible return values: kThermocoupleResolution18Bit kThermocoupleResolution16Bit kThermocoupleResolution14Bit kThermocoupleResolution12Bit

◆ get_thermocouple_temp()

def qwiic_mcp9600.QwiicMCP9600.get_thermocouple_temp (   self,
  units = True 
)

Returns the thermocouple temperature, and clears the data ready bit.

Set units to true for Celcius, or false for freedom units (Fahrenheit)

Parameters
bool,optionalunits: The units to use for the temperature as specified above
Returns
The temperature of the thermocouple or -1 on error

◆ get_thermocouple_type()

def qwiic_mcp9600.QwiicMCP9600.get_thermocouple_type (   self)

Returns the type of thermocouple connected to the MCP9600 as found in its configuration register.

Supported types are: kTypeK kTypeJ kTypeT kTypeN kTypeS kTypeE kTypeB kTypeR

Returns
int The type of thermocouple sensor or -1 on error

◆ is_connected()

def qwiic_mcp9600.QwiicMCP9600.is_connected (   self)

Determines if this device is connected.

Returns
bool True if connected, otherwise False

◆ is_input_range_exceeded()

def qwiic_mcp9600.QwiicMCP9600.is_input_range_exceeded (   self)

Returns true if the input range has been exceeded.

Returns
bool True if the input range has been exceeded, otherwise False

◆ is_temp_greater_than_limit()

def qwiic_mcp9600.QwiicMCP9600.is_temp_greater_than_limit (   self,
  number 
)

Returns true if the interrupt has been triggered, false otherwise.

Parameters
intnumber: The alert number (1-4)
Returns
bool True if the temperature is greater than the limit, otherwise False

◆ read_block_retry()

def qwiic_mcp9600.QwiicMCP9600.read_block_retry (   self,
  register,
  num_bytes 
)

Attempt to read the register until we exit with no error code This attempts to fix the bug where clock stretching sometimes failes, as described in the MCP9600 eratta.

Maximum retries defined by kRetryAttempts.

Parameters
intregister: The register to read
intnum_bytes: The number of bytes to read
Returns
int The value of the register

◆ reset_to_defaults()

def qwiic_mcp9600.QwiicMCP9600.reset_to_defaults (   self)

Resets all device parameters to their default values.

◆ set_ambient_resolution()

def qwiic_mcp9600.QwiicMCP9600.set_ambient_resolution (   self,
  res 
)

Changes the resolution on the cold (ambient) junction, for either 0.0625 or 0.25 degree C resolution.

Lower resolution reduces conversion time. Valid inputs are: kAmbientResolutionZeroPoint0625 kAmbientResolutionZeroPoint25

Parameters
intres: The resolution to use for the ambient sensor
Returns
bool True if the resolution was set successfully, otherwise False

◆ set_burst_samples()

def qwiic_mcp9600.QwiicMCP9600.set_burst_samples (   self,
  samples 
)

Changes the amount of samples to take in burst mode.

Parameters
intsamples: The number of samples to take in burst mode

Available options are: kBurstSample1 kBurstSample2 kBurstSample4 kBurstSample8 kBurstSample16 kBurstSample32 kBurstSample64 kBurstSample128

Returns
bool True if the burst samples were set successfully, otherwise False

◆ set_filter_coefficient()

def qwiic_mcp9600.QwiicMCP9600.set_filter_coefficient (   self,
  filter 
)

Changes the weight of the on-chip exponential moving average filter.

Set this to 0 for no filter, 1 for minimum filter, and 7 for maximum filter.

Parameters
intfilter: The filter coefficient to use
Returns
bool True if the filter coefficient was set successfully, otherwise False

TODO: Arduino function for this looked a bit odd...it might need to be reworked

◆ set_shutdown_mode()

def qwiic_mcp9600.QwiicMCP9600.set_shutdown_mode (   self,
  mode 
)

Changes the shutdown "operating" mode of the MCP9600.

Configurable to Normal, Shutdown, and Burst.

Parameters
intmode: The mode to set the device to

Available options are: kShutdownModeNormal kShutdownModeShutdown kShutdownModeBurst

Returns
bool True if the mode was set successfully, otherwise False

◆ set_thermocouple_resolution()

def qwiic_mcp9600.QwiicMCP9600.set_thermocouple_resolution (   self,
  res 
)

Changes the resolution on the hot (thermocouple) junction, for either 18, 16, 14, or 12-bit resolution.

Lower resolution reduces conversion time. Valid inputs are: kThermocoupleResolution18Bit kThermocoupleResolution16Bit kThermocoupleResolution14Bit kThermocoupleResolution12Bit

Parameters
intres: The resolution to use for the thermocouple sensor
Returns
bool True if the resolution was set successfully, otherwise False

◆ set_thermocouple_type()

def qwiic_mcp9600.QwiicMCP9600.set_thermocouple_type (   self,
  type 
)

Changes the type of thermocouple connected to the MCP9600.

Supported types are: kTypeK kTypeJ kTypeT kTypeN kTypeS kTypeE kTypeB kTypeR

Parameters
inttype: The type of thermocouple to use
Returns
bool True if the type was set successfully, otherwise False

◆ start_burst()

def qwiic_mcp9600.QwiicMCP9600.start_burst (   self)

Initiates a burst on the MCP9600.

Returns
bool True if the burst was started successfully, otherwise False

◆ write_double_register()

def qwiic_mcp9600.QwiicMCP9600.write_double_register (   self,
  register,
  value 
)

Writes a 16-bit value to a register.

Parameters
intregister: The register to write to
intvalue: The value to write

Necessary because we have to write with opposite endianness as write_word

Member Data Documentation

◆ address

qwiic_mcp9600.QwiicMCP9600.address

◆ available_addresses

qwiic_mcp9600.QwiicMCP9600.available_addresses = _AVAILABLE_I2C_ADDRESS
static

◆ device_name

qwiic_mcp9600.QwiicMCP9600.device_name = _DEFAULT_NAME
static

◆ kAlertConfigMaskActiveHigh

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskActiveHigh = 0b1 << kAlertConfigShiftActiveHigh
static

◆ kAlertConfigMaskCompIntMode

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskCompIntMode = 0b1 << kAlertConfigShiftCompIntMode
static

◆ kAlertConfigMaskEnable

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskEnable = 0b1 << kAlertConfigShiftEnable
static

◆ kAlertConfigMaskIntClear

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskIntClear = 0b1 << kAlertConfigShiftIntClear
static

◆ kAlertConfigMaskJuncHot

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskJuncHot = 0b1 << kAlertConfigShiftJuncHot
static

◆ kAlertConfigMaskRising

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigMaskRising = 0b1 << kAlertConfigShiftRising
static

◆ kAlertConfigShiftActiveHigh

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftActiveHigh = 2
static

◆ kAlertConfigShiftCompIntMode

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftCompIntMode = 1
static

◆ kAlertConfigShiftEnable

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftEnable = 0
static

◆ kAlertConfigShiftIntClear

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftIntClear = 7
static

◆ kAlertConfigShiftJuncHot

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftJuncHot = 4
static

◆ kAlertConfigShiftRising

int qwiic_mcp9600.QwiicMCP9600.kAlertConfigShiftRising = 3
static

◆ kAlertLimitMaskSignBit

int qwiic_mcp9600.QwiicMCP9600.kAlertLimitMaskSignBit = 0b1 << kAlertLimitShiftSignBit
static

◆ kAlertLimitShiftSignBit

int qwiic_mcp9600.QwiicMCP9600.kAlertLimitShiftSignBit = 15
static

◆ kAmbientResolutionZeroPoint0625

int qwiic_mcp9600.QwiicMCP9600.kAmbientResolutionZeroPoint0625 = 0
static

◆ kAmbientResolutionZeroPoint25

int qwiic_mcp9600.QwiicMCP9600.kAmbientResolutionZeroPoint25 = 1
static

◆ kBurstSample1

int qwiic_mcp9600.QwiicMCP9600.kBurstSample1 = 0b000
static

◆ kBurstSample128

int qwiic_mcp9600.QwiicMCP9600.kBurstSample128 = 0b111
static

◆ kBurstSample16

int qwiic_mcp9600.QwiicMCP9600.kBurstSample16 = 0b100
static

◆ kBurstSample2

int qwiic_mcp9600.QwiicMCP9600.kBurstSample2 = 0b001
static

◆ kBurstSample32

int qwiic_mcp9600.QwiicMCP9600.kBurstSample32 = 0b101
static

◆ kBurstSample4

int qwiic_mcp9600.QwiicMCP9600.kBurstSample4 = 0b010
static

◆ kBurstSample64

int qwiic_mcp9600.QwiicMCP9600.kBurstSample64 = 0b110
static

◆ kBurstSample8

int qwiic_mcp9600.QwiicMCP9600.kBurstSample8 = 0b011
static

◆ kConfigMaskADCResolution

int qwiic_mcp9600.QwiicMCP9600.kConfigMaskADCResolution = 0b11 << kConfigShiftADCResolution
static

◆ kConfigMaskBurstModeSample

int qwiic_mcp9600.QwiicMCP9600.kConfigMaskBurstModeSample = 0b111 << kConfigShiftBurstModeSample
static

◆ kConfigMaskColdJuncRes

int qwiic_mcp9600.QwiicMCP9600.kConfigMaskColdJuncRes = 0b1 << kConfigShiftColdJuncRes
static

◆ kConfigMaskShutdownMode

int qwiic_mcp9600.QwiicMCP9600.kConfigMaskShutdownMode = 0b11 << kConfigShiftShutdownMode
static

◆ kConfigShiftADCResolution

int qwiic_mcp9600.QwiicMCP9600.kConfigShiftADCResolution = 5
static

◆ kConfigShiftBurstModeSample

int qwiic_mcp9600.QwiicMCP9600.kConfigShiftBurstModeSample = 2
static

◆ kConfigShiftColdJuncRes

int qwiic_mcp9600.QwiicMCP9600.kConfigShiftColdJuncRes = 7
static

◆ kConfigShiftShutdownMode

int qwiic_mcp9600.QwiicMCP9600.kConfigShiftShutdownMode = 0
static

◆ kDeviceIdUpper

int qwiic_mcp9600.QwiicMCP9600.kDeviceIdUpper = 0x40
static

◆ kDeviceResolution

float qwiic_mcp9600.QwiicMCP9600.kDeviceResolution = 0.0625
static

◆ kMaskBurstComplete

int qwiic_mcp9600.QwiicMCP9600.kMaskBurstComplete = 0b1 << kShiftBurstComplete
static

◆ kMaskDataReady

int qwiic_mcp9600.QwiicMCP9600.kMaskDataReady = 0b1 << kShiftDataReady
static

◆ kMaskInputRange

int qwiic_mcp9600.QwiicMCP9600.kMaskInputRange = 0b11 << kShiftInputRange
static

◆ kRegisterAlert1Config

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert1Config = 0x08
static

◆ kRegisterAlert1Hysteresis

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert1Hysteresis = 0x0C
static

◆ kRegisterAlert1Limit

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert1Limit = 0x10
static

◆ kRegisterAlert2Config

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert2Config = 0x09
static

◆ kRegisterAlert2Hysteresis

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert2Hysteresis = 0x0D
static

◆ kRegisterAlert2Limit

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert2Limit = 0x11
static

◆ kRegisterAlert3Config

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert3Config = 0x0A
static

◆ kRegisterAlert3Hysteresis

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert3Hysteresis = 0x0E
static

◆ kRegisterAlert3Limit

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert3Limit = 0x12
static

◆ kRegisterAlert4Config

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert4Config = 0x0B
static

◆ kRegisterAlert4Hysteresis

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert4Hysteresis = 0x0F
static

◆ kRegisterAlert4Limit

int qwiic_mcp9600.QwiicMCP9600.kRegisterAlert4Limit = 0x13
static

◆ kRegisterColdJuncTemp

int qwiic_mcp9600.QwiicMCP9600.kRegisterColdJuncTemp = 0x02
static

◆ kRegisterDeltaJuncTemp

int qwiic_mcp9600.QwiicMCP9600.kRegisterDeltaJuncTemp = 0x01
static

◆ kRegisterDeviceConfig

int qwiic_mcp9600.QwiicMCP9600.kRegisterDeviceConfig = 0x06
static

◆ kRegisterDeviceId

int qwiic_mcp9600.QwiicMCP9600.kRegisterDeviceId = 0x20
static

◆ kRegisterHotJuncTemp

int qwiic_mcp9600.QwiicMCP9600.kRegisterHotJuncTemp = 0x00
static

◆ kRegisterRawAdc

int qwiic_mcp9600.QwiicMCP9600.kRegisterRawAdc = 0x03
static

◆ kRegisterSensorStatus

int qwiic_mcp9600.QwiicMCP9600.kRegisterSensorStatus = 0x04
static

◆ kRegisterThermoSensorConfig

int qwiic_mcp9600.QwiicMCP9600.kRegisterThermoSensorConfig = 0x05
static

◆ kRetryAttempts

int qwiic_mcp9600.QwiicMCP9600.kRetryAttempts = 3
static

◆ kShiftBurstComplete

int qwiic_mcp9600.QwiicMCP9600.kShiftBurstComplete = 7
static

◆ kShiftDataReady

int qwiic_mcp9600.QwiicMCP9600.kShiftDataReady = 6
static

◆ kShiftInputRange

int qwiic_mcp9600.QwiicMCP9600.kShiftInputRange = 4
static

◆ kShutdownModeBurst

int qwiic_mcp9600.QwiicMCP9600.kShutdownModeBurst = 0x02
static

◆ kShutdownModeNormal

int qwiic_mcp9600.QwiicMCP9600.kShutdownModeNormal = 0x00
static

◆ kShutdownModeShutdown

int qwiic_mcp9600.QwiicMCP9600.kShutdownModeShutdown = 0x01
static

◆ kStatusMaskAlert1

int qwiic_mcp9600.QwiicMCP9600.kStatusMaskAlert1 = 0b1 << kStatusShiftAlert1
static

◆ kStatusMaskAlert2

int qwiic_mcp9600.QwiicMCP9600.kStatusMaskAlert2 = 0b1 << kStatusShiftAlert2
static

◆ kStatusMaskAlert3

int qwiic_mcp9600.QwiicMCP9600.kStatusMaskAlert3 = 0b1 << kStatusShiftAlert3
static

◆ kStatusMaskAlert4

int qwiic_mcp9600.QwiicMCP9600.kStatusMaskAlert4 = 0b1 << kStatusShiftAlert4
static

◆ kStatusShiftAlert1

int qwiic_mcp9600.QwiicMCP9600.kStatusShiftAlert1 = 0
static

◆ kStatusShiftAlert2

int qwiic_mcp9600.QwiicMCP9600.kStatusShiftAlert2 = 1
static

◆ kStatusShiftAlert3

int qwiic_mcp9600.QwiicMCP9600.kStatusShiftAlert3 = 2
static

◆ kStatusShiftAlert4

int qwiic_mcp9600.QwiicMCP9600.kStatusShiftAlert4 = 3
static

◆ kThermocoupleResolution12Bit

int qwiic_mcp9600.QwiicMCP9600.kThermocoupleResolution12Bit = 0b11
static

◆ kThermocoupleResolution14Bit

int qwiic_mcp9600.QwiicMCP9600.kThermocoupleResolution14Bit = 0b10
static

◆ kThermocoupleResolution16Bit

int qwiic_mcp9600.QwiicMCP9600.kThermocoupleResolution16Bit = 0b01
static

◆ kThermocoupleResolution18Bit

int qwiic_mcp9600.QwiicMCP9600.kThermocoupleResolution18Bit = 0b00
static

◆ kThermoSensorConfigMaskFilter

int qwiic_mcp9600.QwiicMCP9600.kThermoSensorConfigMaskFilter = 0b111 << kThermoSensorConfigShiftFilter
static

◆ kThermoSensorConfigMaskType

int qwiic_mcp9600.QwiicMCP9600.kThermoSensorConfigMaskType = 0b111 << kThermoSensorConfigShiftType
static

◆ kThermoSensorConfigShiftFilter

int qwiic_mcp9600.QwiicMCP9600.kThermoSensorConfigShiftFilter = 0
static

◆ kThermoSensorConfigShiftType

int qwiic_mcp9600.QwiicMCP9600.kThermoSensorConfigShiftType = 4
static

◆ kTypeB

int qwiic_mcp9600.QwiicMCP9600.kTypeB = 0b110
static

◆ kTypeE

int qwiic_mcp9600.QwiicMCP9600.kTypeE = 0b101
static

◆ kTypeJ

int qwiic_mcp9600.QwiicMCP9600.kTypeJ = 0b001
static

◆ kTypeK

int qwiic_mcp9600.QwiicMCP9600.kTypeK = 0b000
static

◆ kTypeN

int qwiic_mcp9600.QwiicMCP9600.kTypeN = 0b011
static

◆ kTypeR

int qwiic_mcp9600.QwiicMCP9600.kTypeR = 0b111
static

◆ kTypeS

int qwiic_mcp9600.QwiicMCP9600.kTypeS = 0b100
static

◆ kTypeT

int qwiic_mcp9600.QwiicMCP9600.kTypeT = 0b010
static

Property Documentation

◆ connected

qwiic_mcp9600.QwiicMCP9600.connected = property(is_connected)
static

The documentation for this class was generated from the following file: