uint16_t ac4
ac4 coefficient
int16_t bmp180_altitude(const bmp180_t *dev, uint32_t pressure_0)
Compute altitude, returned in m.
int16_t ac3
ac3 coefficient
bmp180_calibration_t calibration
Device calibration.
unsigned int i2c_t
Default i2c_t type definition.
uint8_t i2c_addr
I2C address.
uint16_t ac6
ac6 coefficient
int16_t bmp180_read_temperature(const bmp180_t *dev)
Read temperature value from the given BMP180 device, returned in d°C.
bmp180_oversampling_mode_t oversampling
Oversampling mode.
int16_t ac2
ac2 coefficient
uint32_t bmp180_read_pressure(const bmp180_t *dev)
Read pressure value from the given BMP180 device, returned in Pa.
int bmp180_init(bmp180_t *dev, const bmp180_params_t *params)
Initialize the given BMP180 device.
uint16_t ac5
ac5 coefficient
@ BMP180_ERR_NODEV
did not detect BMP180
int16_t ac1
ac1 coefficient
Calibration struct for the BMP180 sensor.
bmp180_oversampling_mode_t
Oversampling modes.
Device initialization parameters.
i2c_t i2c_dev
I2C device which is used.
@ BMP180_OK
everything was fine
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
@ BMP180_ERR_NOCAL
error when reading calibration values
uint32_t bmp180_sealevel_pressure(const bmp180_t *dev, int16_t altitude)
Compute pressure at sea level, returned in Pa.
Low-level I2C peripheral driver interface definition.
Device descriptor for the BMP180 sensor.
bmp180_params_t params
Device initialization parameters.