Adafruit BME680 Library
|
Sensor driver for BME680 sensor. More...
#include "bme680_defs.h"
Go to the source code of this file.
Functions | |
int8_t | bme680_init (struct bme680_dev *dev) |
This API is the entry point. It reads the chip-id and calibration data from the sensor. More... | |
int8_t | bme680_set_regs (const uint8_t *reg_addr, const uint8_t *reg_data, uint8_t len, struct bme680_dev *dev) |
This API writes the given data to the register address of the sensor. More... | |
int8_t | bme680_get_regs (uint8_t reg_addr, uint8_t *reg_data, uint16_t len, struct bme680_dev *dev) |
This API reads the data from the given register address of the sensor. More... | |
int8_t | bme680_soft_reset (struct bme680_dev *dev) |
This API performs the soft reset of the sensor. More... | |
int8_t | bme680_set_sensor_mode (struct bme680_dev *dev) |
This API is used to set the power mode of the sensor. More... | |
int8_t | bme680_get_sensor_mode (struct bme680_dev *dev) |
This API is used to get the power mode of the sensor. More... | |
void | bme680_set_profile_dur (uint16_t duration, struct bme680_dev *dev) |
This API is used to set the profile duration of the sensor. More... | |
void | bme680_get_profile_dur (uint16_t *duration, struct bme680_dev *dev) |
This API is used to get the profile duration of the sensor. More... | |
int8_t | bme680_get_sensor_data (struct bme680_field_data *data, struct bme680_dev *dev) |
This API reads the pressure, temperature and humidity and gas data from the sensor, compensates the data and store it in the bme680_data structure instance passed by the user. More... | |
int8_t | bme680_set_sensor_settings (uint16_t desired_settings, struct bme680_dev *dev) |
This API is used to set the oversampling, filter and T,P,H, gas selection settings in the sensor. More... | |
int8_t | bme680_get_sensor_settings (uint16_t desired_settings, struct bme680_dev *dev) |
This API is used to get the oversampling, filter and T,P,H, gas selection settings in the sensor. More... | |
Sensor driver for BME680 sensor.
Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission.
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 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
The information provided is believed to be accurate and reliable. The copyright holder assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of the copyright holder.