ConstThe 1-Wire family code that identifies a DS18B20 on the bus.
Builds the nine bytes a part in the given state puts on the bus.
This is the inverse of parseScratchpad, so a node can be written and tested against what a thermometer sends without one attached.
The temperature the part is reading.
The resolution it is configured for, 9 to 12.
The high alarm threshold in whole degrees Celsius.
The low alarm threshold in whole degrees Celsius.
The nine scratchpad bytes in transmission order, CRC last.
Converts a raw temperature register to degrees Celsius.
The 16-bit two's-complement register.
The temperature.
Computes the Maxim CRC-8 a 1-Wire device checks its own bytes with.
The bytes the checksum covers.
The checksum.
Converts a raw temperature register to micro-degrees Celsius.
The 16-bit two's-complement register.
The temperature, exact in integer arithmetic.
Parses and CRC-checks a nine-byte scratchpad.
The scratchpad as the device sent it, the ninth byte its CRC.
The decoded reading.
Returns the resolution a configuration byte selects.
The byte read from the configuration register.
The resolution in bits.
A Maxim DS18B20 1-Wire thermometer.