Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MovingAverageFilter MyI2C PID RC mbed-rtos mbed
BMP085.h
00001 #ifndef BMP085_H 00002 #define BMP085_H 00003 00004 #include "Std_Types.h" 00005 #include "MyI2C.h" 00006 00007 #define BMP_ADDRESS 0x77 00008 #define OSS 3 00009 00010 extern MyI2C I2C0; 00011 00012 class BMP085{ 00013 00014 public: 00015 BMP085(); 00016 void Calibrate(void); 00017 void readUT_Flag(void); 00018 void readUP_Flag(void); 00019 uint16 readUT(void); 00020 uint32 readUP(void); 00021 int16 read_Temperature(void); 00022 int32 read_Pressure(void); 00023 private: 00024 00025 int16 AC1,AC2,AC3,AC4,AC5,AC6; 00026 int16 B1,B2; 00027 int16 MB,MC,MD; 00028 int32 B5; 00029 00030 void write(char reg,char data); 00031 00032 int16 read (char reg); 00033 00034 uint8 readInt (char reg); 00035 00036 }; 00037 #endif
Generated on Mon Jul 18 2022 00:04:58 by
1.7.2