|
RocketLogger 2.1.3
|
#include <stdint.h>
Include dependency graph for bme280.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | bme280_calibration |
Typedefs | |
| typedef struct bme280_calibration | bme280_calibration_t |
Functions | |
| int | bme280_init (int) |
| void | bme280_deinit (int) |
| int | bme280_read (int) |
| int32_t | bme280_get_value (int, int) |
| #define BME280_CALIBRATION_BLOCK1_SIZE 26 |
Definition at line 66 of file bme280.h.
Referenced by bme280_read_calibration().
| #define BME280_CALIBRATION_BLOCK2_SIZE 7 |
Definition at line 67 of file bme280.h.
Referenced by bme280_read_calibration().
| #define BME280_CHANNEL_HUMIDITY 1 |
Definition at line 43 of file bme280.h.
Referenced by bme280_get_value().
| #define BME280_CHANNEL_PRESSURE 2 |
Definition at line 44 of file bme280.h.
Referenced by bme280_get_value().
| #define BME280_CHANNEL_TEMPERATURE 0 |
Definition at line 42 of file bme280.h.
Referenced by bme280_get_value().
| #define BME280_DATA_BLOCK_SIZE 8 |
Definition at line 69 of file bme280.h.
Referenced by bme280_read().
| #define BME280_FILTER_OFF 0x00 |
Definition at line 107 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_I2C_ADDRESS_LEFT 0x76 |
Copyright (c) 2016-2020, ETH Zurich, Computer Engineering Group All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define BME280_I2C_ADDRESSES { (BME280_I2C_ADDRESS_LEFT) } |
| #define BME280_ID 0x60 |
Definition at line 47 of file bme280.h.
Referenced by bme280_init().
| #define BME280_MODE_NORMAL 0x03 |
Definition at line 97 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_OVERSAMPLE_HUMIDITY_1 0x01 |
Definition at line 74 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_OVERSAMPLE_PRESSURE_1 0x04 |
Definition at line 90 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_OVERSAMPLE_TEMPERATURE_1 0x20 |
Definition at line 84 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_REG_CALIBRATION_BLOCK1 0x88 |
Definition at line 49 of file bme280.h.
Referenced by bme280_read_calibration().
| #define BME280_REG_CALIBRATION_BLOCK2 0xE1 |
Definition at line 52 of file bme280.h.
Referenced by bme280_read_calibration().
| #define BME280_REG_CONFIG 0xF5 |
Definition at line 56 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_REG_CONTROL_HUMIDITY 0xF2 |
Definition at line 53 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_REG_CONTROL_MEASURE 0xF4 |
Definition at line 55 of file bme280.h.
Referenced by bme280_set_parameters().
| #define BME280_REG_ID 0xD0 |
Definition at line 50 of file bme280.h.
Referenced by bme280_get_id().
| #define BME280_REG_PRESSURE_MSB 0xF7 |
Definition at line 57 of file bme280.h.
Referenced by bme280_read().
| #define BME280_STANDBY_DURATION_250 0x60 |
Definition at line 102 of file bme280.h.
Referenced by bme280_set_parameters().
| typedef struct bme280_calibration bme280_calibration_t |
| void bme280_deinit | ( | int | sensor_identifier | ) |
| int32_t bme280_get_value | ( | int | sensor_identifier, |
| int | channel ) |
Get the values read from the sensor.
| sensor_identifier | The I2C address of the sensor |
| channel | The channel of the sensor to get |
Definition at line 237 of file bme280.c.
References BME280_CHANNEL_HUMIDITY, BME280_CHANNEL_PRESSURE, BME280_CHANNEL_TEMPERATURE, bme280_get_index(), bme280_humidity, bme280_pressure, and bme280_temperature.
Here is the call graph for this function:| int bme280_init | ( | int | sensor_identifier | ) |
Initialize the BME280 ambient sensor.
| sensor_identifier | The I2C address of the sensor |
Definition at line 144 of file bme280.c.
References bme280_get_id(), BME280_ID, bme280_read_calibration(), bme280_set_parameters(), rl_log(), RL_LOG_ERROR, sensor_bus, sensors_get_bus(), and sensors_init_comm().
Here is the call graph for this function:| int bme280_read | ( | int | sensor_identifier | ) |
Read the sensor values.
| sensor_identifier | The I2C address of the sensor |
Definition at line 193 of file bme280.c.
References BME280_DATA_BLOCK_SIZE, bme280_get_index(), bme280_humidity, bme280_pressure, BME280_REG_PRESSURE_MSB, bme280_temperature, data, rl_log(), RL_LOG_ERROR, sensor_bus, sensors_get_bus(), and sensors_init_comm().
Here is the call graph for this function: