资源简介
本驱动代码,适用于集合温度测量,湿度测量,以及大气压强测量于一体的bme280模块。亲测稳定有效。IIC
代码片段和文件信息
/**\mainpage
* Copyright (C) 2016 - 2017 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.
*
* File bme280.c
* Date 22 Nov 2017
* Version 3.3.2
*
*/
/*! @file bme280.c
@brief Sensor driver for BME280 sensor */
#include “bme280.h“
#include “stm32f4xx.h“
#include
#include
#include
#include
#include
#include “stm32f4xx_i2c.h“
#include “myiic.h“
#include “bme_thread.h“
/**\name Internal macros */
/* To identify osr settings selected by user */
#define OVERSAMPLING_SETTINGS UINT8_C(0x07)
/* To identify filter and standby settings selected by user */
#define FILTER_STANDBY_SETTINGS UINT8_C(0x18)
EnvSensorValue g_EnvSensor;
/*!
* @brief This internal API puts the device to sleep mode.
*
* @param[in] dev : Structure instance of bme280_dev.
*
* @return Result of API execution status.
* @retval zero -> Success / +ve value -> Warning / -ve value -> Error
*/
static int8_t put_device_to_sleep(const struct bme280_dev *dev);
/*!
* @brief This internal API writes the power m
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1960 2018-05-25 13:42 bitband.h
文件 46200 2018-05-25 13:42 bme280.c
文件 9240 2018-05-25 13:42 bme280.h
文件 10570 2018-05-25 13:42 bme280_defs.h
文件 4971 2018-05-25 13:42 bme280_selftest.c
文件 2791 2018-05-25 13:42 bme280_selftest.h
文件 3822 2018-05-25 13:42 bme_thread.c
文件 1004 2018-05-25 13:42 bme_thread.h
- 上一篇:读取雷达SA数据
- 下一篇:STM32f407 SDcard
相关资源
- 基于STM32的温湿度检测系统实现
- 基于ZigBee的温湿度监控系统设计
- 基于Zigbee和GPRS的无线温湿度测量系统
- 详细讲解柔性电子传感器和构造
- 基于Bang-Bang控制的温湿度调节系统
- 单片机控制SHT75温湿度传感器测试
- 单片机通过ESP8266上传温湿度数据
- 基于zigbee温湿度传输及控制带wifiAPP查
- stm32单片机IIC通讯采集sht20温湿度传感
- 基于STM32F103ZE的STH3x温湿度传感器代码
- DHT11温湿度传感器项目代码.rar
- 基于蓝牙的室内温湿度的检测.pdf
- hdc1080.pdf
- 基于STM32的DHT11的温湿度采集GSM报警系
- 基于单片机的温湿度检测及远程控制
- SHT30温湿度传感器程序
- 基于单片机的温湿度控制仪的设计
- 基于单片机的大棚温湿度光强监测毕
- 基于LPC1768的远程数据采集
- 智能家居 环境温湿度采集系统
- STM32温湿度传感器DHT11代码,通过串口
- DTH11温湿度显示在IIC_OLED上,好用,自
- STM32-SHT20温湿度传感器驱动程序
- STM32F103C8T6-DHT11温湿度传感器.rar
- 基于单片机温湿度监控系统的设计
- 基于FPGA的DHT11的温湿度数据采集
- onenet_http_上传温湿度
- STM32F103--SHT30温湿度传感器
- 基于STC89C52的温湿度检测
- DHT11温湿度传感器例程
评论
共有 条评论