bmp180_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 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 BMP180_PARAMS_H
22 #define BMP180_PARAMS_H
23 
24 #include "board.h"
25 #include "bmp180.h"
26 #include "bmp180_internals.h"
27 #include "saul_reg.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #ifndef BMP180_PARAM_I2C_DEV
38 #define BMP180_PARAM_I2C_DEV I2C_DEV(0)
39 #endif
40 #ifndef BMP180_PARAM_I2C_ADDR
41 #define BMP180_PARAM_I2C_ADDR BMP180_ADDR
42 #endif
43 #ifndef BMP180_PARAM_OVERSAMPLING
44 #define BMP180_PARAM_OVERSAMPLING BMP180_ULTRALOWPOWER
45 #endif
46 
47 #ifndef BMP180_PARAMS
48 #define BMP180_PARAMS { .i2c_dev = BMP180_PARAM_I2C_DEV, \
49  .i2c_addr = BMP180_PARAM_I2C_ADDR, \
50  .oversampling = BMP180_PARAM_OVERSAMPLING }
51 #endif
52 #ifndef BMP180_SAUL_INFO
53 #define BMP180_SAUL_INFO { .name = "bmp180" }
54 #endif
55 
61 {
62  BMP180_PARAMS
63 };
64 
69 {
70  BMP180_SAUL_INFO
71 };
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* BMP180_PARAMS_H */
78 
bmp180_saul_info
static const saul_reg_info_t bmp180_saul_info[]
Configure SAUL registry entries.
Definition: bmp180_params.h:68
bmp180_params
static const bmp180_params_t bmp180_params[]
Configure BMP180.
Definition: bmp180_params.h:60
saul_reg_info_t
Additional data to collect for each entry.
Definition: saul_reg.h:49
saul_reg.h
SAUL registry interface definition.
bmp180_params_t
Device initialization parameters.
Definition: bmp180.h:64
bmp180.h
Device driver interface for the BMP180 sensor.
bmp180_internals.h
Internal addresses, registers, constants for the BMP180 sensor.