29 return read_r16(
Temp ) / 256.0;
34 float higher = (v0 < v1) ? v1 : v0;
35 float lower = (v0 < v1) ? v0 : v1;
37 write_r16(
Tos, ((uint16_t)(higher * 256.0)) & 0xFF80 );
38 write_r16(
Thyst, ((uint16_t)(lower * 256.0)) & 0xFF80 );
43 bit_op8(
Conf, ~0x02, flag << 1 );
72 float higher = (v0 < v1) ? v1 : v0;
73 float lower = (v0 < v1) ? v0 : v1;
75 write_r16(
T_HIGH, ((uint16_t)(higher * 256.0)) & 0xFFF0 );
76 write_r16(
T_LOW, ((uint16_t)(lower * 256.0)) & 0xFFF0 );
81 bit_op16(
Conf, ~0x0400, flag << 10 );
86 return (read_r16(
Conf ) & 0x1000) ? true :
false;
void thresholds(float v0, float v1)
LM75B(uint8_t i2c_address=(0x90 > > 1))
P3T1085(uint8_t i2c_address=(0x90 > > 1))
void thresholds(float v0, float v1)
PCT2075(uint8_t i2c_address=(0x90 > > 1))
TempSensor(uint8_t i2c_address)