The friendly Operating System for the Internet of Things
bmp180.h File Reference

Device driver interface for the BMP180 sensor. More...

Detailed Description

#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for bmp180.h:

Go to the source code of this file.

Data Structures

struct  bmp180_calibration_t
 Calibration struct for the BMP180 sensor. More...
 
struct  bmp180_t
 Device descriptor for the BMP180 sensor. More...
 
struct  bmp180_params_t
 Device initialization parameters. More...
 

Macros

Oversampling modes
#define BMP180_ULTRALOWPOWER   (0)
 
#define BMP180_STANDARD   (1)
 
#define BMP180_HIGHRES   (2)
 
#define BMP180_ULTRAHIGHRES   (3)
 

Functions

int bmp180_init (bmp180_t *dev, i2c_t i2c, uint8_t mode)
 Initialize the given BMP180 device. More...
 
int bmp180_read_temperature (bmp180_t *dev, int32_t *temperature)
 Read temperature value from the given BMP180 device, returned in d°C. More...
 
int bmp180_read_pressure (bmp180_t *dev, int32_t *pressure)
 Read pressure value from the given BMP180 device, returned in Pa. More...
 
int bmp180_altitude (bmp180_t *dev, int32_t pressure_0, int32_t *altitude)
 Compute altitude, returned in m. More...
 
int bmp180_sealevel_pressure (bmp180_t *dev, int32_t altitude, int32_t *pressure_0)
 Compute pressure at sea level, returned in Pa. More...
 

Variables

const saul_driver_t bmp180_temperature_saul_driver
 export SAUL endpoints
 
const saul_driver_t bmp180_pressure_saul_driver