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
19#ifndef DHT_PARAMS_H
20#define DHT_PARAMS_H
21
22#include "board.h"
23#include "dht.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef DHT_PARAM_PIN
35#define DHT_PARAM_PIN (GPIO_PIN(0, 0))
36#endif
37#ifndef DHT_PARAM_TYPE
38#define DHT_PARAM_TYPE (DHT11)
39#endif
40#ifndef DHT_PARAM_PULL
41#define DHT_PARAM_PULL (GPIO_IN)
42#endif
43#ifndef DHT_PARAMS
44#define DHT_PARAMS { .pin = DHT_PARAM_PIN, \
45 .type = DHT_PARAM_TYPE, \
46 .in_mode = DHT_PARAM_PULL }
47#endif
48#ifndef DHT_SAULINFO
49#define DHT_SAULINFO { .name = "dht" }
50#endif
56static const dht_params_t dht_params[] =
57{
58 DHT_PARAMS
59};
60
65{
66 DHT_SAULINFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* DHT_PARAMS_H */
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:64
static const dht_params_t dht_params[]
Configure DHT devices.
Definition dht_params.h:56
SAUL registry interface definition.
Configuration parameters for DHT devices.
Definition dht.h:77
Additional data to collect for each entry.
Definition saul_reg.h:49