Bosch Sensortec BMA2x2 sensor driver
Switch branches/tags
Clone or download
BoschSensortec v2.0.7
Updated license
Added FIFO support
3
Latest commit c818a1c Aug 2, 2017
Permalink
Failed to load latest commit information.
README.md v2.0.7 Aug 2, 2017
bma2x2.c v2.0.7 Aug 2, 2017
bma2x2.h v2.0.7 Aug 2, 2017
bma2x2_support.c v2.0.7 Aug 2, 2017

README.md

Table of Contents

Introduction

  • This package contains the Bosch Sensortec MEMS accelerometer sensor driver (sensor API)
  • The sensor driver package includes bma2x2.h, bma2x2.c and bma2x2_support.c files
  • BMA2x2 sensor driver supports the following Bosch MEMS sensors
    • BMA280
    • BMA255
    • BMA253
    • BMA250E
    • BMA22E
    • BMA220
    • BMI055 - Combination of bma2x2 + bmg160 APIs
    • BMX055 - Combination of bma2x2 + bmg160 + bmm050 APIs
    • BMC150 - Combination of bma2x2 + bmm050 APIs
    • BMC056 - Combination of bma2x2 + bmm050 APIs

Version

  • Version of bma2x2 sensor driver is:
Driver files Version
bma2x2.c 2.0.7
bma2x2.h 2.0.7
bma2x2_support.c 1.0.4

Integration details

  • Integrate bma2x2.h and bma2x2.c file in to your project.
  • The bma2x2_support.c file contains only examples for API use cases, so it is not required to integrate into project.

Driver files information

  • bma2x2.h
    • This header file has the register address definition, constant definitions, data type definition and supported sensor driver calls declarations.
  • bma2x2.c
    • This file contains the implementation for the sensor driver APIs.
  • bma2x2_support.c
    • This file shall be used as an user guidance, here you can find samples of - Initialize the sensor with I2C/SPI communication - Add your code to the SPI and/or I2C bus read and bus write functions. - Return value can be chosen by yourself - API just passes that value to your application code - Add your code to the delay function - Change I2C address accordingly in bma2x2.h
      • Power mode configuration of the sensor
      • Get and set functions usage
      • Reading the sensor read out data

Supported sensor interface

  • This accelerometer sensor driver supports SPI and I2C interfaces

Copyright

  • Copyright (C) 2015 - 2016 Bosch Sensortec GmbH