2016-03-14 16:03:36 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Inria
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-07-02 20:35:14 +02:00
|
|
|
* @ingroup drivers_bmp180
|
2016-03-14 16:03:36 +01:00
|
|
|
* @brief Internal addresses, registers, constants for the BMP180 sensor.
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Internal addresses, registers, constants for the BMP180 sensor.
|
|
|
|
*
|
|
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef BMP180_INTERNALS_H
|
|
|
|
#define BMP180_INTERNALS_H
|
2016-03-14 16:03:36 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name BMP180 I2C address
|
2016-03-14 16:03:36 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define BMP180_ADDR (0x77) /* 7 bit address */
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name BMP180 registers
|
2016-03-14 16:03:36 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#define BMP180_REGISTER_ID (0xD0)
|
|
|
|
#define BMP180_REGISTER_CONTROL (0xF4)
|
|
|
|
#define BMP180_REGISTER_DATA (0xF6)
|
|
|
|
#define BMP180_TEMPERATURE_COMMAND (0x2E)
|
|
|
|
#define BMP180_PRESSURE_COMMAND (0x34)
|
|
|
|
#define BMP180_CALIBRATION_AC1 (0xAA)
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name Oversampling modes delays (micros)
|
2016-03-14 16:03:36 +01:00
|
|
|
* @{
|
|
|
|
*/
|
2021-11-02 11:12:22 +01:00
|
|
|
#define BMP180_ULTRALOWPOWER_DELAY_MS (5UL) /**< Ultra low power delay (ms) */
|
|
|
|
#define BMP180_STANDARD_DELAY_MS (8UL) /**< Standard resolution delay (ms) */
|
|
|
|
#define BMP180_HIGHRES_DELAY_MS (14UL) /**< High resolution delay (ms) */
|
|
|
|
#define BMP180_ULTRAHIGHRES_DELAY_MS (26UL) /**< Ultra high resolution delay (ms) */
|
2016-03-14 16:03:36 +01:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* BMP180_INTERNALS_H */
|
2016-03-14 16:03:36 +01:00
|
|
|
/** @} */
|