Loading...
Searching...
No Matches
dht_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "board.h"
22#include "dht.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef DHT_PARAM_PIN
34#define DHT_PARAM_PIN (GPIO_PIN(0, 0))
35#endif
36#ifndef DHT_PARAM_TYPE
37#define DHT_PARAM_TYPE (DHT11)
38#endif
39#ifndef DHT_PARAM_PULL
40#define DHT_PARAM_PULL (GPIO_IN)
41#endif
42#ifndef DHT_PARAMS
43#define DHT_PARAMS { .pin = DHT_PARAM_PIN, \
44 .type = DHT_PARAM_TYPE, \
45 .in_mode = DHT_PARAM_PULL }
46#endif
47#ifndef DHT_SAULINFO
48#define DHT_SAULINFO { .name = "dht" }
49#endif
51
55static const dht_params_t dht_params[] =
56{
57 DHT_PARAMS
58};
59
64{
65 DHT_SAULINFO
66};
67
68#ifdef __cplusplus
69}
70#endif
71
Device driver interface for the DHT family of humidity and temperature sensors.
static const saul_reg_info_t dht_saul_info[]
Allocate and configure entries to the SAUL registry.
Definition dht_params.h:63
static const dht_params_t dht_params[]
Configure DHT devices.
Definition dht_params.h:55
SAUL registry interface definition.
Configuration parameters for DHT devices.
Definition dht.h:76
Additional data to collect for each entry.
Definition saul_reg.h:48