mpl3115a2_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 HAW Hamburg
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 MPL3115A2_PARAMS_H
20 #define MPL3115A2_PARAMS_H
21 
22 #include "board.h"
23 #include "saul_reg.h"
24 #include "mpl3115a2.h"
25 #include "mpl3115a2_reg.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef MPL3115A2_PARAM_I2C
36 #define MPL3115A2_PARAM_I2C I2C_DEV(0)
37 #endif
38 
39 #ifndef MPL3115A2_PARAM_ADDR
40 #define MPL3115A2_PARAM_ADDR MPL3115A2_I2C_ADDRESS
41 #endif
42 
43 #ifndef MPL3115A2_PARAM_RATIO
44 #define MPL3115A2_PARAM_RATIO MPL3115A2_OS_RATIO_DEFAULT
45 #endif
46 
47 #ifndef MPL3115A2_PARAMS
48 #define MPL3115A2_PARAMS { .i2c = MPL3115A2_PARAM_I2C, \
49  .addr = MPL3115A2_PARAM_ADDR, \
50  .ratio = MPL3115A2_PARAM_RATIO }
51 #endif
52 #ifndef MPL3115A2_SAUL_INFO
53 #define MPL3115A2_SAUL_INFO { .name = "mpl3115a2" }
54 #endif
55 
61 {
62  MPL3115A2_PARAMS
63 };
64 
69 {
70  MPL3115A2_SAUL_INFO
71 };
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* MPL3115A2_PARAMS_H */
78 
Register definition for the MPL3115A2 sensor driver.
Interface definition for the MPL3115A2 sensor driver.
static const mpl3115a2_params_t mpl3115a2_params[]
MPL3115A2 configuration.
Configuration parameters.
Definition: mpl3115a2.h:89
Additional data to collect for each entry.
Definition: saul_reg.h:49
SAUL registry interface definition.
static const saul_reg_info_t mpl3115a2_saul_info[]
Additional meta information to keep in the SAUL registry.