bme280.h File Reference
BME280 Temperature, Humidty and Pressure Sensor. More...
Go to the source code of this file.
Data Structures | |
struct | bme280_calib_data |
calibration data structure to hold coefficients More... | |
Enumerations | |
enum | { BME280_REGISTER_DIG_T1 = 0x88, BME280_REGISTER_DIG_T2 = 0x8A, BME280_REGISTER_DIG_T3 = 0x8C, BME280_REGISTER_DIG_P1 = 0x8E, BME280_REGISTER_DIG_P2 = 0x90, BME280_REGISTER_DIG_P3 = 0x92, BME280_REGISTER_DIG_P4 = 0x94, BME280_REGISTER_DIG_P5 = 0x96, BME280_REGISTER_DIG_P6 = 0x98, BME280_REGISTER_DIG_P7 = 0x9A, BME280_REGISTER_DIG_P8 = 0x9C, BME280_REGISTER_DIG_P9 = 0x9E, BME280_REGISTER_DIG_H1 = 0xA1, BME280_REGISTER_DIG_H2 = 0xE1, BME280_REGISTER_DIG_H3 = 0xE3, BME280_REGISTER_DIG_H4 = 0xE4, BME280_REGISTER_DIG_H5 = 0xE5, BME280_REGISTER_DIG_H6 = 0xE7, BME280_REGISTER_CHIPID = 0xD0, BME280_REGISTER_VERSION = 0xD1, BME280_REGISTER_SOFTRESET = 0xE0, BME280_REGISTER_CAL26 = 0xE1, BME280_REGISTER_CONTROLHUMID = 0xF2, BME280_REGISTER_CONTROL = 0xF4, BME280_REGISTER_CONFIG = 0xF5, BME280_REGISTER_PRESSUREDATA = 0xF7, BME280_REGISTER_TEMPDATA = 0xFA, BME280_REGISTER_HUMIDDATA = 0xFD } |
register map for BME280 sensor More... | |
Functions | |
KSensorStatus | bme280_setup (void) |
Setup the SPI interface for talking with the BME280 and init sensor. More... | |
KSensorStatus | bme280_soft_reset (void) |
Reset the bme280 to default conditions. More... | |
KSensorStatus | bme280_read_temperature (float *temp) |
Sends temperature command and reads back temperature data. More... | |
KSensorStatus | bme280_read_pressure (float *press) |
Sends pressure command and reads back pressure data. More... | |
KSensorStatus | bme280_read_humidity (float *hum) |
Sends humidity command and reads back humidity. More... | |
KSensorStatus | bme280_read_altitude (float sea_level, float *alt) |
converts pressure to absolute altitude More... | |