si70xx_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
3  * 2017 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef SI70XX_PARAMS_H
22 #define SI70XX_PARAMS_H
23 
24 #include "board.h"
25 #include "si70xx.h"
26 #include "saul_reg.h"
27 #include "si70xx_internals.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #ifndef SI70XX_PARAM_I2C_DEV
38 #define SI70XX_PARAM_I2C_DEV I2C_DEV(0)
39 #endif
40 #ifndef SI70XX_PARAM_ADDR
41 #define SI70XX_PARAM_ADDR SI70XX_I2C_ADDRESS
42 #endif
43 
44 #ifndef SI70XX_PARAMS
45 #define SI70XX_PARAMS { .i2c_dev = SI70XX_PARAM_I2C_DEV, \
46  .address = SI70XX_PARAM_ADDR }
47 #endif
48 #ifndef SI70XX_SAUL_INFO
49 #define SI70XX_SAUL_INFO { .name = "si70xx" }
50 #endif
51 
57 {
58  SI70XX_PARAMS
59 };
60 
65 {
66  SI70XX_SAUL_INFO
67 };
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* SI70XX_PARAMS_H */
74 
si70xx.h
Interface definition of the Si70xx driver.
si70xx_params_t
Device initialization parameters.
Definition: si70xx.h:45
saul_reg_info_t
Additional data to collect for each entry.
Definition: saul_reg.h:49
si70xx_internals.h
Internal definitions for Si7006/13/20/21.
si70xx_saul_info
static const saul_reg_info_t si70xx_saul_info[]
Configure SAUL registry entries.
Definition: si70xx_params.h:64
saul_reg.h
SAUL registry interface definition.
si70xx_params
static const si70xx_params_t si70xx_params[]
Configure Si7006/13/20/21.
Definition: si70xx_params.h:56