Loading...
Searching...
No Matches
bmp180_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Inria
3 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "bmp180.h"
22#include "bmp180_internals.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef BMP180_PARAM_I2C_DEV
34#define BMP180_PARAM_I2C_DEV I2C_DEV(0)
35#endif
36#ifndef BMP180_PARAM_I2C_ADDR
37#define BMP180_PARAM_I2C_ADDR BMP180_ADDR
38#endif
39#ifndef BMP180_PARAM_OVERSAMPLING
40#define BMP180_PARAM_OVERSAMPLING BMP180_ULTRALOWPOWER
41#endif
42
43#ifndef BMP180_PARAMS
44#define BMP180_PARAMS { .i2c_dev = BMP180_PARAM_I2C_DEV, \
45 .i2c_addr = BMP180_PARAM_I2C_ADDR, \
46 .oversampling = BMP180_PARAM_OVERSAMPLING }
47#endif
48#ifndef BMP180_SAUL_INFO
49#define BMP180_SAUL_INFO { .name = "bmp180" }
50#endif
52
57{
58 BMP180_PARAMS
59};
60
65{
66 BMP180_SAUL_INFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
Device driver interface for the BMP180 sensor.
Internal addresses, registers, constants for the BMP180 sensor.
static const bmp180_params_t bmp180_params[]
Configure BMP180.
static const saul_reg_info_t bmp180_saul_info[]
Configure SAUL registry entries.
SAUL registry interface definition.
Device initialization parameters.
Definition bmp180.h:63
Additional data to collect for each entry.
Definition saul_reg.h:48