SparkFun BMI330 Arduino Library  v1.0.0-2-gdbddb99
Arduino Library for the SparkFun Qwiic BMI330 6-DoF IMU (Bosch BMI330)
Loading...
Searching...
No Matches
sfe_bmi330_motion_config_t Struct Reference

Any-motion and no-motion detector settings. More...

#include <sfDevBMI330.h>

Public Attributes

uint16_t slopeThreshold = 10
 Slope threshold, 1.953 mg/LSB. Range 0 to 4095. More...
 
bool accelRefUpdate = true
 Continuously update the acceleration reference. More...
 
uint16_t hysteresis = 2
 Slope hysteresis, 1.953 mg/LSB. Range 0 to 1023. More...
 
uint16_t duration = 10
 Samples the condition must hold, 20 ms/LSB. Range 0 to 8191. More...
 
uint8_t waitTime = 3
 Delay before clearing the event, 20 ms/LSB. Range 0 to 7. More...
 

Detailed Description

Any-motion and no-motion detector settings.

The two detectors are mirror images and share this structure. Any-motion fires when the slope of the acceleration signal stays ABOVE slopeThreshold for duration consecutive samples; no-motion fires when it stays BELOW.

Note
Units are the hardware's, not SI: slope threshold and hysteresis are 1.953 mg per LSB (1/512 g), and duration and wait time are 20 ms per LSB (a 50 Hz internal tick). The defaults here are the device's own power-on values.

Member Data Documentation

◆ accelRefUpdate

bool sfe_bmi330_motion_config_t::accelRefUpdate = true

Continuously update the acceleration reference.

◆ duration

uint16_t sfe_bmi330_motion_config_t::duration = 10

Samples the condition must hold, 20 ms/LSB. Range 0 to 8191.

◆ hysteresis

uint16_t sfe_bmi330_motion_config_t::hysteresis = 2

Slope hysteresis, 1.953 mg/LSB. Range 0 to 1023.

◆ slopeThreshold

uint16_t sfe_bmi330_motion_config_t::slopeThreshold = 10

Slope threshold, 1.953 mg/LSB. Range 0 to 4095.

◆ waitTime

uint8_t sfe_bmi330_motion_config_t::waitTime = 3

Delay before clearing the event, 20 ms/LSB. Range 0 to 7.


The documentation for this struct was generated from the following file: