|
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 | BHI360_SDA 2 |
| #define | BHI360_SCL 3 |
| #define | BHI360_IRQ 8 |
| #define | BHI360_RST -1 |
| #define | BOSCH_SHUTTLE3_BHI360 |
| #define | USING_SENSOR_IRQ_METHOD |
Functions | |
| SensorAnyMotion | anyMotion (bhy) |
| void | dataReadyISR () |
| void | progress_callback (uint32_t total, uint32_t transferred, void *user_data) |
| void | setup () |
| void | loop () |
Variables | |
| SensorBHI360 | bhy |
| volatile bool | isInterruptTriggered = false |
@license MIT License
Copyright (c) 2026 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 bhi360_any_motion.ino.
| #define BHI360_IRQ 8 |
Definition at line 78 of file bhi360_any_motion.ino.
| #define BHI360_RST -1 |
Definition at line 83 of file bhi360_any_motion.ino.
| #define BHI360_SCL 3 |
Definition at line 73 of file bhi360_any_motion.ino.
| #define BHI360_SDA 2 |
Definition at line 69 of file bhi360_any_motion.ino.
| #define BOSCH_SHUTTLE3_BHI360 |
Definition at line 97 of file bhi360_any_motion.ino.
| #define USE_I2C_INTERFACE |
Definition at line 40 of file bhi360_any_motion.ino.
| #define USING_SENSOR_IRQ_METHOD |
Definition at line 123 of file bhi360_any_motion.ino.
| void dataReadyISR | ( | ) |
Definition at line 129 of file bhi360_any_motion.ino.
References isInterruptTriggered.
Referenced by setup().
| void loop | ( | ) |
Definition at line 226 of file bhi360_any_motion.ino.
References bhy, and isInterruptTriggered.
| void progress_callback | ( | uint32_t | total, |
| uint32_t | transferred, | ||
| void * | user_data | ||
| ) |
Definition at line 137 of file bhi360_any_motion.ino.
| void setup | ( | ) |
Definition at line 146 of file bhi360_any_motion.ino.
References anyMotion(), BHI360_IRQ, BHI360_RST, BHI360_SCL, BHI360_SDA, bhy, dataReadyISR(), SPI_MISO, SPI_MOSI, and SPI_SCK.
| SensorBHI360 bhy |
Definition at line 86 of file bhi360_any_motion.ino.
| volatile bool isInterruptTriggered = false |
Definition at line 127 of file bhi360_any_motion.ino.
Referenced by dataReadyISR(), and loop().