public interface AccelerometerBosch extends Accelerometer
Accelerometer
providing general access to a Bosch accelerometer. If you know specifically which
Bosch accelerometer is on your board, use the appropriate subclass instead.AccelerometerBma255
,
AccelerometerBmi160
Modifier and Type | Interface and Description |
---|---|
static class |
AccelerometerBosch.AccRange
Available data ranges
|
static class |
AccelerometerBosch.AnyMotion
Wrapper class encapsulating interrupts from any motion detection
|
static interface |
AccelerometerBosch.AnyMotionConfigEditor
Configuration editor for any-motion detection
|
static interface |
AccelerometerBosch.AnyMotionDataProducer
Detects when a number of consecutive slope data points is above a threshold.
|
static class |
AccelerometerBosch.DoubleTapWindow
Available windows for double tap detection
|
static interface |
AccelerometerBosch.FlatConfigEditor<T extends AccelerometerBosch.FlatConfigEditor>
Accelerometer agnostic interface for configuring flat detection algorithm
|
static interface |
AccelerometerBosch.FlatDataProducer
On-board algorithm that detects whether the senor is laying flat or not
|
static class |
AccelerometerBosch.LowGMode
Interrupt modes for low-g detection
|
static interface |
AccelerometerBosch.LowHighConfigEditor
Interface for configuring low/high g detection
|
static interface |
AccelerometerBosch.LowHighDataProducer
On-board algorithm that detects when low (i.e.
|
static class |
AccelerometerBosch.LowHighResponse
Wrapper class encapsulating the data from a low/high g interrupt
|
static interface |
AccelerometerBosch.MotionDetection
Motion detection algorithms on Bosch sensors.
|
static interface |
AccelerometerBosch.NoMotionConfigEditor
Configuration editor for no-motion detection
|
static interface |
AccelerometerBosch.NoMotionDataProducer
Detects when the slope of acceleration data is below a threshold for a period of time.
|
static interface |
AccelerometerBosch.OrientationConfigEditor
Configuration editor for the orientation detection algorithm
|
static interface |
AccelerometerBosch.OrientationDataProducer
On-board algorithm that detects changes in the sensor's orientation.
|
static class |
AccelerometerBosch.OrientationMode
Calculation modes controlling the conditions that determine the sensor's orientation
|
static interface |
AccelerometerBosch.SlowMotionConfigEditor
Configuration editor for slow-motion detection
|
static interface |
AccelerometerBosch.SlowMotionDataProducer
Similar to any motion detection except no information is stored regarding what triggered the interrupt.
|
static class |
AccelerometerBosch.Tap
Wrapper class encapsulating responses from tap detection
|
static interface |
AccelerometerBosch.TapConfigEditor
Configuration editor for the tap detection algorithm
|
static interface |
AccelerometerBosch.TapDataProducer
On-board algorithm that detects taps
|
static class |
AccelerometerBosch.TapQuietTime
Available quiet times for double tap detection
|
static class |
AccelerometerBosch.TapShockTime
Available shock times for tap detection
|
Accelerometer.AccelerationDataProducer, Accelerometer.ConfigEditor<T extends Accelerometer.ConfigEditor>
Modifier and Type | Method and Description |
---|---|
AccelerometerBosch.FlatDataProducer |
flat()
Get an implementation of the FlatDataProducer interface
|
AccelerometerBosch.LowHighDataProducer |
lowHigh()
Get an implementation of the LowHighDataProducer interface
|
<T extends AccelerometerBosch.MotionDetection> |
motion(java.lang.Class<T> motionClass)
Get an implementation of the MotionDetection interface.
|
AccelerometerBosch.OrientationDataProducer |
orientation()
Get an implementation of the OrientationDataProducer interface
|
AccelerometerBosch.TapDataProducer |
tap()
Get an implementation of the TapDataProducer interface
|
acceleration, getOdr, getRange, packedAcceleration, pullConfigAsync, start, stop
configure
AccelerometerBosch.OrientationDataProducer orientation()
AccelerometerBosch.FlatDataProducer flat()
AccelerometerBosch.LowHighDataProducer lowHigh()
<T extends AccelerometerBosch.MotionDetection> T motion(java.lang.Class<T> motionClass)
T
- Runtime type the returned value is casted asmotionClass
- Type of motion detection to useAccelerometerBosch.TapDataProducer tap()