public static interface Bmi160Accelerometer.LowHighDetectionConfigEditor
Modifier and Type | Method and Description |
---|---|
void |
commit()
Writes the new settings to the board
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setHighDuration(int duration)
Sets the minimum amount of time the acceleration sign does not change for an interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setHighHysteresis(float hysteresis)
Sets the hysteresis level for clearing the high-g interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setHighThreshold(float threshold)
Sets the threshold for clearing high-g interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setLowDuration(int duration)
Sets the minimum amount of time the acceleration must stay below (ths + hys) for an interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setLowGMode(Bmi160Accelerometer.LowGMode mode)
Sets mode for low-g detection
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setLowHysteresis(float hysteresis)
Sets the hysteresis level for low-g interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor |
setLowThreshold(float threshold)
Sets the threshold that triggers a low-g interrupt
|
Bmi160Accelerometer.LowHighDetectionConfigEditor setLowDuration(int duration)
duration
- Duration between [2.5, 640] millisecondsBmi160Accelerometer.LowHighDetectionConfigEditor setLowThreshold(float threshold)
threshold
- Low-g interrupt threshold, between [0.00391, 2.0] gBmi160Accelerometer.LowHighDetectionConfigEditor setLowHysteresis(float hysteresis)
hysteresis
- Low-g interrupt hysteresis, between [0, 0.375]gBmi160Accelerometer.LowHighDetectionConfigEditor setLowGMode(Bmi160Accelerometer.LowGMode mode)
mode
- Low-g detection modeBmi160Accelerometer.LowHighDetectionConfigEditor setHighDuration(int duration)
duration
- Duration between [2.5, 640] millisecondsBmi160Accelerometer.LowHighDetectionConfigEditor setHighThreshold(float threshold)
threshold
- High-g clear interrupt thresholdBmi160Accelerometer.LowHighDetectionConfigEditor setHighHysteresis(float hysteresis)
hysteresis
- Hysteresis for clearing high-g interruptvoid commit()