public static interface AccelerometerBosch.LowHighConfigEditor extends ConfigEditorBase
Modifier and Type | Method and Description |
---|---|
AccelerometerBosch.LowHighConfigEditor |
enableHighGx()
Enable high g detection on the x-axis
|
AccelerometerBosch.LowHighConfigEditor |
enableHighGy()
Enable high g detection on the y-axis
|
AccelerometerBosch.LowHighConfigEditor |
enableHighGz()
Enable high g detection on the z-axis
|
AccelerometerBosch.LowHighConfigEditor |
enableLowG()
Enable low g detection on all 3 axes
|
AccelerometerBosch.LowHighConfigEditor |
highDuration(int duration)
Set the minimum amount of time the acceleration sign does not change for an interrupt
|
AccelerometerBosch.LowHighConfigEditor |
highHysteresis(float hysteresis)
Set the hysteresis level for clearing the high-g interrupt
|
AccelerometerBosch.LowHighConfigEditor |
highThreshold(float threshold)
Set the threshold for clearing high-g interrupt
|
AccelerometerBosch.LowHighConfigEditor |
lowDuration(int duration)
Set the minimum amount of time the acceleration must stay below (ths + hys) for an interrupt
|
AccelerometerBosch.LowHighConfigEditor |
lowGMode(AccelerometerBosch.LowGMode mode)
Set mode for low-g detection
|
AccelerometerBosch.LowHighConfigEditor |
lowHysteresis(float hysteresis)
Set the hysteresis level for low-g interrupt
|
AccelerometerBosch.LowHighConfigEditor |
lowThreshold(float threshold)
Set the threshold that triggers a low-g interrupt
|
commit
AccelerometerBosch.LowHighConfigEditor enableLowG()
AccelerometerBosch.LowHighConfigEditor enableHighGx()
AccelerometerBosch.LowHighConfigEditor enableHighGy()
AccelerometerBosch.LowHighConfigEditor enableHighGz()
AccelerometerBosch.LowHighConfigEditor lowDuration(int duration)
duration
- Duration between [2.5, 640] millisecondsAccelerometerBosch.LowHighConfigEditor lowThreshold(float threshold)
threshold
- Low-g interrupt threshold, between [0.00391, 2.0] gAccelerometerBosch.LowHighConfigEditor lowHysteresis(float hysteresis)
hysteresis
- Low-g interrupt hysteresis, between [0, 0.375]gAccelerometerBosch.LowHighConfigEditor lowGMode(AccelerometerBosch.LowGMode mode)
mode
- Low-g detection modeAccelerometerBosch.LowHighConfigEditor highDuration(int duration)
duration
- Duration between [2.5, 640] millisecondsAccelerometerBosch.LowHighConfigEditor highThreshold(float threshold)
threshold
- High-g clear interrupt thresholdAccelerometerBosch.LowHighConfigEditor highHysteresis(float hysteresis)
hysteresis
- Hysteresis for clearing high-g interrupt