/*
 * bmp085.h
 *
 *  Created on: Oct 5, 2012
 *      Author: VaZso
 */

#ifndef BMP085_H_
#define BMP085_H_

#define I2C_BMP08 0x77

/* bmp085.c */
void write_register(unsigned char r, unsigned char v);
char read_register(unsigned char r);
int read_int_register(unsigned char r);
unsigned int bmp085_read_ut(void);
long bmp085_read_up(void);
void bmp085_read_temperature_and_pressure(int *temperature, long *pressure);
void bmp085_results_average(int *temp, long *pres);
void bmp085_get_cal_data(void);

#endif /* BMP085_H_ */
