|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
@license MIT License More...
#include <Wire.h>#include <SPI.h>#include <Arduino.h>#include <ImuDrv.hpp>#include <BoschFirmware.h>Go to the source code of this file.
Macros | |
| #define | USE_I2C_INTERFACE |
| #define | BHI260_SDA 2 |
| #define | BHI260_SCL 3 |
| #define | BHI260_IRQ 8 |
| #define | BHI260_RST -1 |
| #define | USING_DATA_HELPER |
| #define | BOSCH_APP30_SHUTTLE_BHI260_AUX_BMM150FW |
| #define | USING_SENSOR_IRQ_METHOD |
Functions | |
| SensorAcceleration | accel (bhy) |
| SensorGyroscope | gyro (bhy) |
| SensorMagnetometer | mag (bhy) |
| void | dataReadyISR () |
| void | progress_callback (uint32_t total, uint32_t transferred, void *user_data) |
| void | setup () |
| void | loop () |
Variables | |
| SensorBHI260AP | bhy |
| bool | force_update_flash_firmware = true |
| volatile bool | isInterruptTriggered = false |
@license MIT License
Copyright (c) 2024 lewis he
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file bhi260ap_aux_bmm150.ino.
| #define BHI260_IRQ 8 |
Definition at line 79 of file bhi260ap_aux_bmm150.ino.
| #define BHI260_RST -1 |
Definition at line 84 of file bhi260ap_aux_bmm150.ino.
| #define BHI260_SCL 3 |
Definition at line 74 of file bhi260ap_aux_bmm150.ino.
| #define BHI260_SDA 2 |
Definition at line 70 of file bhi260ap_aux_bmm150.ino.
| #define BOSCH_APP30_SHUTTLE_BHI260_AUX_BMM150FW |
Definition at line 105 of file bhi260ap_aux_bmm150.ino.
| #define USE_I2C_INTERFACE |
Definition at line 41 of file bhi260ap_aux_bmm150.ino.
| #define USING_DATA_HELPER |
Definition at line 95 of file bhi260ap_aux_bmm150.ino.
| #define USING_SENSOR_IRQ_METHOD |
Definition at line 135 of file bhi260ap_aux_bmm150.ino.
| SensorAcceleration accel | ( | bhy | ) |
| void dataReadyISR | ( | ) |
Definition at line 141 of file bhi260ap_aux_bmm150.ino.
References isInterruptTriggered.
Referenced by setup().
| SensorGyroscope gyro | ( | bhy | ) |
| void loop | ( | ) |
Definition at line 280 of file bhi260ap_aux_bmm150.ino.
References accel, bhy, GyroscopeData::dps, gyro, isInterruptTriggered, mag(), MagnetometerData::magnetic_field, AccelerometerData::mps2, SensorVector::x, SensorVector::y, and SensorVector::z.
| SensorMagnetometer mag | ( | bhy | ) |
| void progress_callback | ( | uint32_t | total, |
| uint32_t | transferred, | ||
| void * | user_data | ||
| ) |
Definition at line 166 of file bhi260ap_aux_bmm150.ino.
| void setup | ( | ) |
Definition at line 174 of file bhi260ap_aux_bmm150.ino.
References accel, BHI260_IRQ, BHI260_RST, BHI260_SCL, BHI260_SDA, bhy, dataReadyISR(), force_update_flash_firmware, gyro, mag(), SensorBHI260AP::setBootFromFlash(), SPI_MISO, SPI_MOSI, and SPI_SCK.
| SensorBHI260AP bhy |
Definition at line 87 of file bhi260ap_aux_bmm150.ino.
| bool force_update_flash_firmware = true |
Definition at line 132 of file bhi260ap_aux_bmm150.ino.
Referenced by setup().
| volatile bool isInterruptTriggered = false |
Definition at line 139 of file bhi260ap_aux_bmm150.ino.
Referenced by dataReadyISR(), and loop().