Home
last modified time | relevance | path

Searched refs:dht11 (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/iio/humidity/
Ddht11.c60 struct dht11 { struct
93 static int dht11_decode(struct dht11 *dht11, int offset, int timeres) in dht11_decode() argument
104 t = dht11->edges[offset + 2 * i + 2].ts - in dht11_decode()
105 dht11->edges[offset + 2 * i + 1].ts; in dht11_decode()
106 if (!dht11->edges[offset + 2 * i + 1].value) in dht11_decode()
120 dht11->timestamp = ktime_get_real_ns(); in dht11_decode()
122 dht11->temperature = (((temp_int & 0x7f) << 8) + temp_dec) * in dht11_decode()
124 dht11->humidity = ((hum_int << 8) + hum_dec) * 100; in dht11_decode()
126 dht11->temperature = temp_int * 1000; in dht11_decode()
127 dht11->humidity = hum_int * 1000; in dht11_decode()
[all …]
DMakefile5 obj-$(CONFIG_DHT11) += dht11.o
/linux-4.4.14/Documentation/devicetree/bindings/iio/humidity/
Ddht11.txt4 - compatible: Should be "dht11"
12 compatible = "dht11";