34 return read_r16(
Temp ) / 256.0;
39 float higher = (v0 < v1) ? v1 : v0;
40 float lower = (v0 < v1) ? v0 : v1;
42 write_r16(
Tos, ((uint16_t)(higher * 256.0)) & 0xFF80 );
43 write_r16(
Thyst, ((uint16_t)(lower * 256.0)) & 0xFF80 );
48 bit_op8(
Conf, ~0x02, flag << 1 );
77 float higher = (v0 < v1) ? v1 : v0;
78 float lower = (v0 < v1) ? v0 : v1;
80 write_r16(
T_HIGH, ((uint16_t)(higher * 256.0)) & 0xFFF0 );
81 write_r16(
T_LOW, ((uint16_t)(lower * 256.0)) & 0xFFF0 );
86 bit_op16(
Conf, ~0x0400, flag << 10 );
91 return (read_r16(
Conf ) & 0x1000) ? true :
false;
virtual void thresholds(float v0, float v1)
virtual void os_mode(mode flag)
LM75B(uint8_t i2c_address=(0x90 > > 1))
P3T1085(uint8_t i2c_address=(0x90 > > 1))
virtual void os_mode(mode flag)
virtual void thresholds(float v0, float v1)
PCT2075(uint8_t i2c_address=(0x90 > > 1))
TempSensor(uint8_t i2c_address)
virtual float temp(void)=0