• 大小: 22KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-18
  • 语言: 其他
  • 标签: bmp280  iic  

资源简介

bmp280的驱动程序,bmp280是广泛应用的气压高度计芯片

资源截图

代码片段和文件信息

/*
 ****************************************************************************
 * Copyright (C) 2015 - 2016 Bosch Sensortec GmbH
 *
 * File : bmp280.c
 *
 * Date : 2016/07/01
 *
 * Revision : 2.0.5(Pressure and Temperature compensation code revision is 1.1)
 *
 * Usage: Sensor Driver for BMP280 sensor
 *
 ****************************************************************************
*
* \section License
*
* 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.
**************************************************************************/
#include “bmp280.h“
static struct bmp280_t *p_bmp280; /**< pointer to BMP280 */

/*!
 * @brief This function is used for initialize
 * the bus read and bus write functions
 *  and assign the chip id and I2C address of the BMP280 sensor
 * chip id is read in the register 0xD0 bit from 0 to 7
 *
 * @param *bmp280 structure pointer.
 *
 * @note While changing the parameter of the p_bmp280
 * @note consider the following point:
 * Changing the reference value of the parameter
 * will changes the local copy or local reference
 * make sure your changes will not
 * affect the reference value of the parameter
 * (Better case don‘t change the refe

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-07-28 05:46  BMP280_driver-master\
     文件        1875  2017-07-28 05:46  BMP280_driver-master\README.md
     文件       48430  2017-07-28 05:46  BMP280_driver-master\bmp280.c
     文件       53114  2017-07-28 05:46  BMP280_driver-master\bmp280.h
     文件       19050  2017-07-28 05:46  BMP280_driver-master\bmp280_support.c

评论

共有 条评论