I2C interface of Bosch BMP085 pressure/temperature sensor.

bmp085.h

Committer:
davernm
Date:
2013-04-14
Revision:
3:9c82e6a0172a
Parent:
0:de9de5beb7af

File content as of revision 3:9c82e6a0172a:

#ifndef BMP085_H
#define BMP085_H

#include "mbed.h"

class BMP085
{
 
 private:
 short AC1,AC2,AC3,B1,B2,MB,MC,MD;
unsigned short AC4,AC5,AC6;
char Vals[22]; //22 bytes of data 

 I2C i2c;
 //DigitalIn _EOC;
 
 int oss;
 bool flag;
 
 DigitalIn *EOCptr;
 
public: //overloaded constructors
 
   BMP085(PinName sda,PinName scl,int Oss);
   BMP085(PinName sda,PinName scl);
   BMP085(PinName sda,PinName scl, PinName EOC,int Oss);
  
   


void calVals(long UT,long UP, long *Temp,long *Pre); 
long readUT(void);      
long readUP(void);
void readCal(void);

}; 
    
#endif