6 #ifndef ACE_TIME_HW_TEMPERATURE_H 7 #define ACE_TIME_HW_TEMPERATURE_H 11 #include "../common/util.h" 25 return (int16_t) ((msb << 8) | lsb);
36 m = ((uint16_t) temp) >> 8;
37 l = ((uint16_t) temp) & 0xFF;
44 uint8_t frac = (uint16_t) l * 100 / 256;
47 common::printPad2(printer, frac);
The temperature in Celcius as a signed (8.8) fixed-point integer.
void printTo(Print &printer) const
Print HardwareTemperature to 'printer'.
int16_t toTemperature256() const
Return temperature in units of 1/256 degrees.