Go to the documentation of this file.00001 #ifndef APM_BMP085_h
00002 #define APM_BMP085_h
00003
00004
00005 class APM_BMP085_Class
00006 {
00007 private:
00008
00009 uint8_t BMP085_State;
00010
00011 int16_t ac1, ac2, ac3, b1, b2, mb, mc, md;
00012 uint16_t ac4, ac5, ac6;
00013 void Command_ReadPress();
00014 void Command_ReadTemp();
00015 void ReadPress();
00016 void ReadTemp();
00017 void Calculate();
00018 public:
00019 int32_t RawPress;
00020 int32_t RawTemp;
00021 int16_t Temp;
00022 int32_t Press;
00023
00024 uint8_t oss;
00025
00026
00027 APM_BMP085_Class();
00028 void Init(int initialiseWireLib = 1);
00029 uint8_t Read();
00030 };
00031
00032 class APM_BMP085_HIL_Class
00033 {
00034 private:
00035 uint8_t BMP085_State;
00036 public:
00037 int32_t RawPress;
00038 int32_t RawTemp;
00039 int16_t Temp;
00040 int32_t Press;
00041
00042 uint8_t oss;
00043 APM_BMP085_HIL_Class();
00044 void Init(int initialiseWireLib = 1);
00045 uint8_t Read();
00046 void setHIL(float Temp, float Press);
00047 };
00048
00049 #endif