Loading...
Searching...
No Matches
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
10#pragma once
11
22
23#include "board.h"
24#include "bmp180.h"
25#include "bmp180_internals.h"
26#include "saul_reg.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifndef BMP180_PARAM_I2C_DEV
37#define BMP180_PARAM_I2C_DEV I2C_DEV(0)
38#endif
39#ifndef BMP180_PARAM_I2C_ADDR
40#define BMP180_PARAM_I2C_ADDR BMP180_ADDR
41#endif
42#ifndef BMP180_PARAM_OVERSAMPLING
43#define BMP180_PARAM_OVERSAMPLING BMP180_ULTRALOWPOWER
44#endif
45
46#ifndef BMP180_PARAMS
47#define BMP180_PARAMS { .i2c_dev = BMP180_PARAM_I2C_DEV, \
48 .i2c_addr = BMP180_PARAM_I2C_ADDR, \
49 .oversampling = BMP180_PARAM_OVERSAMPLING }
50#endif
51#ifndef BMP180_SAUL_INFO
52#define BMP180_SAUL_INFO { .name = "bmp180" }
53#endif
55
60{
61 BMP180_PARAMS
62};
63
68{
69 BMP180_SAUL_INFO
70};
71
72#ifdef __cplusplus
73}
74#endif
75
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