modm API documentation
modm::mcp990x< I2cMaster >::Data Struct Reference

Public Member Functions

constexpr int16_t getTemperatureFractional ()
 
constexpr int8_t getTemperatureInteger ()
 
constexpr float getTemperature ()
 

Public Attributes

uint8_t data [2]
 

Static Public Attributes

static constexpr auto ExtendedOffset {64}
 

Member Function Documentation

template<class I2cMaster >
constexpr float modm::mcp990x< I2cMaster >::Data::getTemperature ( )
inlineconstexpr
Returns
temperature as float in °C
template<class I2cMaster >
constexpr int16_t modm::mcp990x< I2cMaster >::Data::getTemperatureFractional ( )
inlineconstexpr
Returns
temperature in 0.125 °C steps
template<class I2cMaster >
constexpr int8_t modm::mcp990x< I2cMaster >::Data::getTemperatureInteger ( )
inlineconstexpr
Returns
temperature integral part in °C

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