BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bmp180.h
Go to the documentation of this file.
1 /* Copyright 2012-2014, Peter A. Bigot
2  *
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  *
11  * * Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * * Neither the name of the software nor the names of its contributors may be
16  * used to endorse or promote products derived from this software without
17  * specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 #ifndef BSP430_SENSORS_BMP180_H
33 #define BSP430_SENSORS_BMP180_H
34 
65 #include <bsp430/serial.h>
66 #include <bsp430/periph/timer.h>
67 
70 #define BSP430_SENSORS_BMP180_I2C_ADDRESS 0x77
71 
74  int16_t ac1;
75  int16_t ac2;
76  int16_t ac3;
77  uint16_t ac4;
78  uint16_t ac5;
79  uint16_t ac6;
80  int16_t b1;
81  int16_t b2;
82  int16_t mb;
83  int16_t mc;
84  int16_t md;
86 
89 
93  uint32_t pressure_uncomp;
94 
97  int32_t pressure_Pa;
98 
101 
105  int16_t temperature_dK;
106 
110  uint8_t oversampling;
112 
115 
127 
149 
163 
164 #endif /* BSP430_SENSORS_BMP180_H */
int iBSP430sensorsBMP180getCalibration(hBSP430halSERIAL i2c, hBSP430sensorsBMP180calibration calh)
int16_t temperature_dK
Definition: bmp180.h:105
Definition: bmp180.h:73
int32_t pressure_Pa
Definition: bmp180.h:97
Definition: serial_.h:193
Hardware presentation/abstraction for generic timers (Timer_A/Timer_B)
int iBSP430sensorsBMP180getSample(hBSP430halSERIAL i2c, hBSP430sensorsBMP180sample sample)
struct sBSP430sensorsBMP180sample sBSP430sensorsBMP180sample
Declarations for abstracted serial interface.
sBSP430sensorsBMP180sample * hBSP430sensorsBMP180sample
Definition: bmp180.h:114
sBSP430sensorsBMP180calibration * hBSP430sensorsBMP180calibration
Definition: bmp180.h:88
struct sBSP430sensorsBMP180calibration sBSP430sensorsBMP180calibration
uint32_t pressure_uncomp
Definition: bmp180.h:93
uint16_t temperature_uncomp
Definition: bmp180.h:100
Definition: bmp180.h:91
void vBSP430sensorsBMP180convertSample(const sBSP430sensorsBMP180calibration *calp, hBSP430sensorsBMP180sample sample)
uint8_t oversampling
Definition: bmp180.h:110