shtc1_params.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017, RWTH Aachen. All rights reserved.
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 
21 #ifndef SHTC1_PARAMS_H
22 #define SHTC1_PARAMS_H
23 
24 #include "board.h"
25 #include "shtc1.h"
26 #include "shtc1_regs.h"
27 #include "saul_reg.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #ifndef SHTC1_PARAM_I2C_DEV
38 #define SHTC1_PARAM_I2C_DEV (I2C_DEV(0))
39 #endif
40 #ifndef SHTC1_PARAM_I2C_ADDR
41 #define SHTC1_PARAM_I2C_ADDR SHTC1_I2C_ADDRESS
42 #endif
43 
44 #ifndef SHTC1_PARAMS
45 #define SHTC1_PARAMS { .i2c_dev = SHTC1_PARAM_I2C_DEV, \
46  .i2c_addr = SHTC1_PARAM_I2C_ADDR }
47 #endif
48 #ifndef SHTC1_SAUL_INFO
49 #define SHTC1_SAUL_INFO { .name = "shtc1 temperature" }, \
50  { .name = "shtc1 humidity" }
51 #endif
52 
57 static const shtc1_params_t shtc1_params[] =
58 {
59  SHTC1_PARAMS
60 };
61 
66 {
67  SHTC1_SAUL_INFO
68 };
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* SHTC1_PARAMS_H */
74 
shtc1_params_t
settings struct with all relevant parameters
Definition: shtc1.h:46
shtc1_regs.h
Register definitions for SHTC1 devices.
saul_reg_info_t
Additional data to collect for each entry.
Definition: saul_reg.h:49
shtc1_saul_info
static const saul_reg_info_t shtc1_saul_info[]
Configure SAUL registry entries.
Definition: shtc1_params.h:65
shtc1.h
Device driver interface for the SHTC1 Temperature and humidity sensor.
saul_reg.h
SAUL registry interface definition.
shtc1_params
static const shtc1_params_t shtc1_params[]
Allocation of SHTC1 configuration.
Definition: shtc1_params.h:57