Home
last modified time | relevance | path

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

/drivers/iio/humidity/
Ddht11.c71 struct dht11 { struct
95 static void dht11_edges_print(struct dht11 *dht11) in dht11_edges_print() argument
99 dev_dbg(dht11->dev, "%d edges detected:\n", dht11->num_edges); in dht11_edges_print()
100 for (i = 1; i < dht11->num_edges; ++i) { in dht11_edges_print()
101 dev_dbg(dht11->dev, "%d: %lld ns %s\n", i, in dht11_edges_print()
102 dht11->edges[i].ts - dht11->edges[i - 1].ts, in dht11_edges_print()
103 dht11->edges[i - 1].value ? "high" : "low"); in dht11_edges_print()
122 static int dht11_decode(struct dht11 *dht11, int offset) in dht11_decode() argument
129 t = dht11->edges[offset + 2 * i + 2].ts - in dht11_decode()
130 dht11->edges[offset + 2 * i + 1].ts; in dht11_decode()
[all …]
DMakefile7 obj-$(CONFIG_DHT11) += dht11.o