Commit e578169c authored by Denia Bouhired-Ferrag's avatar Denia Bouhired-Ferrag

Added support for temperature readout from one wire chip

parent aa7b1aff
This diff is collapsed.
......@@ -30,6 +30,9 @@
-- last changes:
-- 03-05-2014 Theodor Stana Added GPL header
-- 31-07-2014 Theodor Stana Added MSWR & LSR registers
-- Denia Bouhired Added separate pulse counters for TTL and BLO pulses
-- 11-10-2016 Denia Bouhired Added thermometer registers one 16 bit for temperature read out
-- 2 for LSBs and MSBs of 64-bit ID
--==============================================================================
-- TODO: -
--==============================================================================
......@@ -913,5 +916,48 @@ peripheral {
access_bus = READ_ONLY;
};
};
-- 32 LS Bits of 64 bit ID of 1-Wire thermometer
reg {
name = "32 least significant bits of DS18B20U";
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";
prefix = "DS18B20U_temp";
field {
name = "Temperature from DS18B20 thermometer";
type = SLV;
size = 16;
access_bus = READ_ONLY;
access_dev = WRITE_ONLY;
};
};
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment