• 大小: 132KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-13
  • 语言: 其他
  • 标签: BMA456  博世  传感器  

资源简介

包含Bosch Sensortec的BMA456传感器API。 包括文件bma4_defs.h,bma4.h,bma4.c,bma456.c和bma456.h。

资源截图

代码片段和文件信息

/**
 * Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved.
 *
 * BSD-3-Clause
 *
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice this list of conditions and the following disclaimer.
 *
 * 2. 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.
 *
 * 3. Neither the name of the copyright holder nor the names of its
 *    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 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.
 *
 * @file       bma4.c
 * @date       2020-04-09
 * @version    V2.14.12
 *
 */

/*
 * @file       bma4.c
 * @brief   Source file for the BMA4 Sensor API
 */

/***************************************************************************/

/*!
 * @defgroup bma4 BMA4
 */

/**\name        Header files
 ****************************************************************************/
#include “bma4.h“

/***************************************************************************/

/**\name        Local structures
 ****************************************************************************/

/*!
 * @brief Accel data deviation from ideal value
 */
struct bma4_offset_delta
{
    /*! X axis */
    int16_t x;

    /*! Y axis */
    int16_t y;

    /*! Z axis */
    int16_t z;
};

/*!
 * @brief Accel offset xyz structure
 */
struct bma4_accel_offset
{
    /*! Accel offset X  data */
    uint8_t x;

    /*! Accel offset Y  data */
    uint8_t y;

    /*! Accel offset Z  data */
    uint8_t z;
};

/***************************************************************************/

/*! Static Function Declarations
 ****************************************************************************/

/*!
 *  @brief This API validates the bandwidth and perfmode
 *  value set by the user.
 *
 *  param band

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\
     文件       22542  2020-04-23 08:00  BMA456-Sensor-API-master\说明.md
     文件      175419  2020-04-23 08:00  BMA456-Sensor-API-master\bma4.c
     文件       76885  2020-04-23 08:00  BMA456-Sensor-API-master\bma4.h
     文件       80824  2020-04-23 08:00  BMA456-Sensor-API-master\bma456.c
     文件       37352  2020-04-23 08:00  BMA456-Sensor-API-master\bma456.h
     文件       85628  2020-04-23 08:00  BMA456-Sensor-API-master\bma456h.c
     文件       55663  2020-04-23 08:00  BMA456-Sensor-API-master\bma456h.h
     文件       40599  2020-04-23 08:00  BMA456-Sensor-API-master\bma4_defs.h
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\examples\
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\
     文件        5767  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\accelerometer.c
     文件        4784  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\bma4_common.c
     文件        3916  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\bma4_common.h
     文件        6540  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\fifo_full_header_mode.c
     文件        6279  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\fifo_full_headerless_mode.c
     文件        7135  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\fifo_watermark_header_mode.c
     文件        6818  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\fifo_watermark_headerless_mode.c
     文件        6416  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\motion.c
     文件        4470  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\step_activity.c
     文件        3010  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\step_counter.c
     文件        3300  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456\generic\tap.c
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\
     目录           0  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\
     文件        5883  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\accelerometer.c
     文件        5190  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\auto_low_power.c
     文件        4784  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\bma4_common.c
     文件        3916  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\bma4_common.h
     文件        6466  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\fifo_full_header_mode.c
     文件        6291  2020-04-23 08:00  BMA456-Sensor-API-master\examples\bma456h\generic\fifo_full_headerless_mode.c
............此处省略8个文件信息

评论

共有 条评论