description = "32 LS bits of 1-wire thermometer ID";
prefix = "DS18B20U_ID_LSB";
field {
name = "LS bits of 1-wire DS18B20U thermometer ID";
type = SLV;
size = 32;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
-- 32 MS Bits of 64 bit ID of 1-Wire thermometer
reg {
name = "32 most significant bits of DS18B20U";
description = "32 MS bits of 1-wire thermometer ID";
prefix = "DS18B20U_ID_MSB";
field {
name = "MS bits of 1-wire DS18B20U thermometer ID";
type = SLV;
size = 32;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
-- 16 bit temperature
reg {
name = "Board temperature";
description = "raw temperature data from the one wire DS18B20U. The register is 2-bytes long; it translates to oC as follows: temp = ((byte1 << 8) | byte0) / 16.0";