modm API documentation
modm::Tmp12xTemperature< NumBits, OffsetBits, Numerator, Denominator > Class Template Reference

#include <modm/driver/temperature/tmp12x.hpp>

Public Typedefs

using Fraction = std::ratio< Numerator, Denominator >
 

Public Member Functions

constexpr Tmp12xTemperature (uint16_t sensorData)
 
constexpr float getTemperatureFloat () const
 
constexpr int16_t getTemperatureInteger () const
 
constexpr int16_t getTemperatureFractional () const
 

Detailed Description

template<uint8_t NumBits, uint8_t OffsetBits, uint8_t Numerator, uint8_t Denominator>
class modm::Tmp12xTemperature< NumBits, OffsetBits, Numerator, Denominator >

TMP12x temperature data Use aliases Tmp121Temperature, Tmp123Temperature, Tmp125Temperature for the respective sensor.

Author
Christopher Durand
Template Parameters
numBitsNumber of bits of measured temperature
offsetBitsInvalid LSB of raw sensor value
numerator
denominator

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