|
RocketLogger 2.1.2
|
#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_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) } |
| 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: