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_tap_config_t Struct Reference

Tap detector settings. More...

#include <sfDevBMI330.h>

Public Attributes

sfe_bmi330_tap_axis_t axis = BMI330_TAP_AXIS_Z
 Axis to watch. More...
 
bool waitForTimeout = false
 Wait out the full gesture window before reporting. More...
 
uint8_t maxPeaksForTap = 6
 Zero crossings allowed around one tap. Range 0 to 7. More...
 
uint8_t mode = 0
 0 sensitive, 1 normal, 2 robust. More...
 
uint16_t peakThreshold = 0x2D
 Minimum peak amplitude for a tap. Range 0 to 1023. More...
 
uint8_t maxGestureDuration = 16
 Window for a whole multi-tap gesture. Range 0 to 63. More...
 
uint8_t maxDurationBetweenPeaks = 4
 Positive-to-negative peak window. Range 0 to 15. More...
 
uint8_t shockSettlingDuration = 6
 How long a tap's impact is observed. Range 0 to 15. More...
 
uint8_t minQuietBetweenTaps = 8
 Quiet time required between taps. Range 0 to 15. More...
 
uint8_t quietTimeAfterGesture = 12
 Quiet time required after a gesture. Range 0 to 15. More...
 

Detailed Description

Tap detector settings.

Tap detection is the fussiest feature on the part, and peakThreshold is the knob that matters: too low and footsteps register, too high and nothing does. It is worth sweeping against the actual enclosure - a tap through 3 mm of acrylic is a very different signal from a tap on a bare board. Defaults are the device's power-on values.

Note
All the duration fields are in 20 ms ticks.

Member Data Documentation

◆ axis

sfe_bmi330_tap_axis_t sfe_bmi330_tap_config_t::axis = BMI330_TAP_AXIS_Z

Axis to watch.

◆ maxDurationBetweenPeaks

uint8_t sfe_bmi330_tap_config_t::maxDurationBetweenPeaks = 4

Positive-to-negative peak window. Range 0 to 15.

◆ maxGestureDuration

uint8_t sfe_bmi330_tap_config_t::maxGestureDuration = 16

Window for a whole multi-tap gesture. Range 0 to 63.

◆ maxPeaksForTap

uint8_t sfe_bmi330_tap_config_t::maxPeaksForTap = 6

Zero crossings allowed around one tap. Range 0 to 7.

◆ minQuietBetweenTaps

uint8_t sfe_bmi330_tap_config_t::minQuietBetweenTaps = 8

Quiet time required between taps. Range 0 to 15.

◆ mode

uint8_t sfe_bmi330_tap_config_t::mode = 0

0 sensitive, 1 normal, 2 robust.

◆ peakThreshold

uint16_t sfe_bmi330_tap_config_t::peakThreshold = 0x2D

Minimum peak amplitude for a tap. Range 0 to 1023.

◆ quietTimeAfterGesture

uint8_t sfe_bmi330_tap_config_t::quietTimeAfterGesture = 12

Quiet time required after a gesture. Range 0 to 15.

◆ shockSettlingDuration

uint8_t sfe_bmi330_tap_config_t::shockSettlingDuration = 6

How long a tap's impact is observed. Range 0 to 15.

◆ waitForTimeout

bool sfe_bmi330_tap_config_t::waitForTimeout = false

Wait out the full gesture window before reporting.


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