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: wifi-ism43362
Dependents: DigitalOut DigitalOut
BMP180Wrapper.h
- Committer:
- marcel1691
- Date:
- 2020-05-26
- Revision:
- 15:a57126cdcc98
File content as of revision 15:a57126cdcc98:
/**
 * Bosch BMP180 Digital Pressure Sensor
 *
 */
#ifndef BPM180_BMP180WRAPPER_H_
#define BPM180_BMP180WRAPPER_H_
#include <BMP180.h>
#include "mbed.h"
#include "DevI2C.h"
class BMP180Wrapper
{
public:
    BMP180Wrapper(DevI2C *i2c);
    virtual int init(void *init);
    virtual int read_id(uint8_t *id);
    virtual int get_humidity(float *pfData);
    virtual int get_temperature(float *pfData);
    int enable(void);
private:
    BMP180 bmp180;
};
#endif /* BPM180_BMP180WRAPPER_H_ */