Device driver interface for the BMP180 sensor. More...
Device driver interface for the BMP180 sensor.
Definition in file 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_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... | |