Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/humidity/
Ddht11.c70 struct dht11 { struct
94 static void dht11_edges_print(struct dht11 *dht11) in dht11_edges_print() argument
98 dev_dbg(dht11->dev, "%d edges detected:\n", dht11->num_edges); in dht11_edges_print()
99 for (i = 1; i < dht11->num_edges; ++i) { in dht11_edges_print()
100 dev_dbg(dht11->dev, "%d: %lld ns %s\n", i, in dht11_edges_print()
101 dht11->edges[i].ts - dht11->edges[i - 1].ts, in dht11_edges_print()
102 dht11->edges[i - 1].value ? "high" : "low"); in dht11_edges_print()
121 static int dht11_decode(struct dht11 *dht11, int offset) in dht11_decode() argument
128 t = dht11->edges[offset + 2 * i + 2].ts - in dht11_decode()
129 dht11->edges[offset + 2 * i + 1].ts; in dht11_decode()
[all …]
DMakefile7 obj-$(CONFIG_DHT11) += dht11.o
/linux-6.6.21/Documentation/devicetree/bindings/iio/humidity/
Ddht11.yaml4 $id: http://devicetree.org/schemas/iio/humidity/dht11.yaml#
19 const: dht11
38 compatible = "dht11";