hdc1000_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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 HDC1000_PARAMS_H
20 #define HDC1000_PARAMS_H
21 
22 #include "board.h"
23 #include "hdc1000.h"
24 #include "saul_reg.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef HDC1000_PARAM_I2C
35 #define HDC1000_PARAM_I2C I2C_DEV(0)
36 #endif
37 #ifndef HDC1000_PARAM_ADDR
38 #define HDC1000_PARAM_ADDR (CONFIG_HDC1000_I2C_ADDRESS)
39 #endif
40 #ifndef HDC1000_PARAM_RES
41 #define HDC1000_PARAM_RES HDC1000_14BIT
42 #endif
43 #ifndef HDC1000_PARAM_RENEW_INTERVAL
44 #define HDC1000_PARAM_RENEW_INTERVAL (1000000ul)
45 #endif
46 
47 #ifndef HDC1000_PARAMS
48 #define HDC1000_PARAMS { .i2c = HDC1000_PARAM_I2C, \
49  .addr = HDC1000_PARAM_ADDR, \
50  .res = HDC1000_PARAM_RES, \
51  .renew_interval = HDC1000_PARAM_RENEW_INTERVAL }
52 #endif
53 #ifndef HDC1000_SAUL_INFO
54 #define HDC1000_SAUL_INFO { .name = "hdc1000" }
55 #endif
56 
62 {
63  HDC1000_PARAMS
64 };
65 
70 {
71  HDC1000_SAUL_INFO
72 };
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* HDC1000_PARAMS_H */
79 
saul_reg_info_t
Additional data to collect for each entry.
Definition: saul_reg.h:49
hdc1000_saul_info
static const saul_reg_info_t hdc1000_saul_info[]
Additional meta information to keep in the SAUL registry.
Definition: hdc1000_params.h:69
hdc1000_params
static const hdc1000_params_t hdc1000_params[]
HDC1000 configuration.
Definition: hdc1000_params.h:61
hdc1000_params_t
Parameters needed for device initialization.
Definition: hdc1000.h:102
saul_reg.h
SAUL registry interface definition.
hdc1000.h
Interface definition for the HDC1000 sensor driver.