ConstThe addresses the ADD0 pin selects.
ADD0 tied to GND.
ADD0 tied to SCL.
ADD0 tied to SDA.
ADD0 tied to V+.
The value the configuration register reads after a reset.
The value the device-ID register reads, which confirms the part.
The word written to the EEPROM-unlock register to allow a write.
The byte a general-call reset sends to address 0x00.
The value the high-limit register holds after a reset.
The value the low-limit register holds after a reset.
The registers a driver reads and writes.
The configuration register.
The device-ID register.
The first general-purpose EEPROM word.
The second general-purpose EEPROM word.
The third general-purpose EEPROM word.
The EEPROM unlock register.
The temperature offset applied to every result.
The temperature result.
The high alert limit.
The low alert limit.
The value the result register holds before the first conversion.
Converts a raw temperature register to degrees Celsius.
The signed 16-bit register.
The temperature.
Assembles the 16-bit configuration register value.
The settings to encode.
The register value to write.
Parses a 16-bit configuration register value.
The register value, as read from the device.
The decoded settings. Every value decodes, so this never throws.
Returns how long an averaging code takes to convert.
The averaging code, 0 to 3.
The active conversion time in microseconds.
Returns how many conversions an averaging code folds into one result.
The averaging code, 0 to 3.
The conversion count: 1, 8, 32, or 64.
Returns the result interval for a cycle and averaging pair.
The conversion-cycle code, 0 to 7.
The averaging code, 0 to 3.
The interval in microseconds, never shorter than the conversions take.
Reports whether a configuration register says a conversion is ready.
The configuration register.
Whether a new result is waiting.
Returns the device identifier a device-ID register carries.
The device-ID register.
The 12-bit identifier, which is 0x117 for a TMP117.
Reports whether a configuration register says an EEPROM write is running.
The configuration register.
Whether the part is still writing.
Reports whether an EEPROM-unlock register says a write is running.
The EEPROM unlock register.
Whether the part is still writing.
Reports whether a configuration register flags a high alert.
The configuration register.
Whether the result went above the high limit.
Reports whether a configuration register flags a low alert.
The configuration register.
Whether the result went below the low limit.
Converts a raw temperature register to micro-degrees Celsius.
The signed 16-bit register.
The temperature, truncated toward zero.
Converts a raw temperature register to nano-degrees Celsius.
The signed 16-bit register.
The temperature, exact at the part's 7.8125 m°C resolution.
Returns the nominal cycle a conversion-cycle code names.
The conversion-cycle code, 0 to 7.
The cycle with no averaging, in microseconds.
Builds the raw register for a temperature in degrees Celsius.
The temperature.
The nearest register value, saturating at the part's range.
Builds the raw register for a temperature in micro-degrees Celsius.
The temperature.
The nearest register value, saturating at the part's range.
Returns the die revision a device-ID register carries.
The device-ID register.
The 4-bit revision.
Builds the two bytes the part sends for a temperature register.
The signed 16-bit register.
The register, most significant byte first.
A TI TMP117 high-accuracy digital temperature sensor.