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 
9 #pragma once
10 
21 #include "board.h"
22 #include "saul_reg.h"
23 #include "mpl3115a2.h"
24 #include "mpl3115a2_reg.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef MPL3115A2_PARAM_I2C
35 #define MPL3115A2_PARAM_I2C I2C_DEV(0)
36 #endif
37 
38 #ifndef MPL3115A2_PARAM_ADDR
39 #define MPL3115A2_PARAM_ADDR MPL3115A2_I2C_ADDRESS
40 #endif
41 
42 #ifndef MPL3115A2_PARAM_RATIO
43 #define MPL3115A2_PARAM_RATIO MPL3115A2_OS_RATIO_DEFAULT
44 #endif
45 
46 #ifndef MPL3115A2_PARAMS
47 #define MPL3115A2_PARAMS { .i2c = MPL3115A2_PARAM_I2C, \
48  .addr = MPL3115A2_PARAM_ADDR, \
49  .ratio = MPL3115A2_PARAM_RATIO }
50 #endif
51 #ifndef MPL3115A2_SAUL_INFO
52 #define MPL3115A2_SAUL_INFO { .name = "mpl3115a2" }
53 #endif
60 {
61  MPL3115A2_PARAMS
62 };
63 
68 {
69  MPL3115A2_SAUL_INFO
70 };
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
Interface definition for the MPL3115A2 sensor driver.
static const mpl3115a2_params_t mpl3115a2_params[]
MPL3115A2 configuration.
static const saul_reg_info_t mpl3115a2_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definition for the MPL3115A2 sensor driver.
SAUL registry interface definition.
Configuration parameters.
Definition: mpl3115a2.h:92
Additional data to collect for each entry.
Definition: saul_reg.h:48