Contiki 2.5
Data Structures | Macros | Functions
pressure-bmp085.h File Reference

    Bosch BMP085 Digital Pressure Sensor
More...

#include "../drv/i2c-drv.h"
#include <util/delay.h>

Go to the source code of this file.

Data Structures

struct  bmp085_calib_data
 

Macros

#define BMP085_DEV_ADDR_R   0xEF
 
#define BMP085_DEV_ADDR_W   0xEE
 
#define BMP085_CTRL_REG_ADDR   0xF4
 
#define BMP085_CTRL_REG_TEMP   0x2E
 
#define BMP085_CTRL_REG_PRESS_0   0x34
 
#define BMP085_CTRL_REG_PRESS_1   0x74
 
#define BMP085_CTRL_REG_PRESS_2   0xB4
 
#define BMP085_CTRL_REG_PRESS_3   0xF4
 
#define BMP085_DATA_REG_N   0xF6
 
#define BMP085_DATA_REG_X   0xF8
 
#define BMP085_AC1_ADDR   0xAA
 
#define BMP085_AC2_ADDR   0xAC
 
#define BMP085_AC3_ADDR   0xAE
 
#define BMP085_AC4_ADDR   0xB0
 
#define BMP085_AC5_ADDR   0xB2
 
#define BMP085_AC6_ADDR   0xB4
 
#define BMP085_B1_ADDR   0xB6
 
#define BMP085_B2_ADDR   0xB8
 
#define BMP085_MB_ADDR   0xBA
 
#define BMP085_MC_ADDR   0xBC
 
#define BMP085_MD_ADDR   0xBE
 

Functions

int8_t bmp085_init (void)
 Initialize the MPL115A Pressure Sensor. More...
 
int32_t bmp085_read_temperature (void)
 This functions reads the raw value of one temperature conversion. More...
 
int32_t bmp085_read_comp_temperature (void)
 This function reads the raw temperature value and converts it to real temerature. More...
 
int32_t bmp085_read_pressure (uint8_t mode)
 This functions reads the raw value of one pressure conversion. More...
 
int32_t bmp085_read_comp_pressure (uint8_t mode)
 This functions reads the temperature compensated value of one pressure conversion. More...
 
void bmp085_read_calib_data (void)
 Reads all coefficients from eeprom.
 
uint16_t bmp085_read16bit_data (uint8_t addr)
 Generic minor function to read two byte sequentially. More...
 
uint8_t bmp085_read8bit_data (uint8_t addr)
 Generic minor function to read one byte. More...
 

Detailed Description

    Bosch BMP085 Digital Pressure Sensor
Author
Ulf Kulau kulau.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de

Definition in file pressure-bmp085.h.