Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
27
extern
"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_PU)
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
51
56
static
const
dht_params_t
dht_params
[] =
57
{
58
DHT_PARAMS
59
};
60
64
static
const
saul_reg_info_t
dht_saul_info
[] =
65
{
66
DHT_SAULINFO
67
};
68
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif
/* DHT_PARAMS_H */
74
dht.h
Device driver interface for the DHT family of humidity and temperature sensors.
saul_reg_info_t
Additional data to collect for each entry.
Definition:
saul_reg.h:49
dht_saul_info
static const saul_reg_info_t dht_saul_info[]
Allocate and configure entries to the SAUL registry.
Definition:
dht_params.h:64
saul_reg.h
SAUL registry interface definition.
dht_params_t
Configuration parameters for DHT devices.
Definition:
dht.h:72
dht_params
static const dht_params_t dht_params[]
Configure DHT devices.
Definition:
dht_params.h:56
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17