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

Detailed Description

Device driver interface for the BMP180 sensor.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file bmp180.h.

#include "saul.h"
#include "periph/i2c.h"
+ Include dependency graph for bmp180.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Enumerations

enum  bmp180_oversampling_mode_t { BMP180_ULTRALOWPOWER = 0, BMP180_STANDARD, BMP180_HIGHRES, BMP180_ULTRAHIGHRES }
 Oversampling modes.
 
enum  { BMP180_OK = 0, BMP180_ERR_NODEV, BMP180_ERR_NOCAL }
 Status and error return codes. More...
 

Functions

int bmp180_init (bmp180_t *dev, const bmp180_params_t *params)
 Initialize the given BMP180 device. More...
 
int16_t bmp180_read_temperature (const bmp180_t *dev)
 Read temperature value from the given BMP180 device, returned in d°C. More...
 
uint32_t bmp180_read_pressure (const bmp180_t *dev)
 Read pressure value from the given BMP180 device, returned in Pa. More...
 
int16_t bmp180_altitude (const bmp180_t *dev, uint32_t pressure_0)
 Compute altitude, returned in m. More...
 
uint32_t bmp180_sealevel_pressure (const bmp180_t *dev, int16_t altitude)
 Compute pressure at sea level, returned in Pa. More...