public interface Mma8452qAccelerometer extends Accelerometer
Modifier and Type | Interface and Description |
---|---|
static interface |
Mma8452qAccelerometer.AutoSleepConfigEditor
Interface for configuring auto sleep mode
|
static class |
Mma8452qAccelerometer.Axis
Axes available for motion detection.
|
static interface |
Mma8452qAccelerometer.DetectionConfigEditor<T extends Mma8452qAccelerometer.DetectionConfigEditor>
Base class for configuring motion detection om the chip
|
static class |
Mma8452qAccelerometer.FullScaleRange
Max range of the accelerometer data on the MWR accelerometer (MMA8452Q)
|
static interface |
Mma8452qAccelerometer.MovementConfigEditor
Interface for configuring motion / free fall detection
|
static interface |
Mma8452qAccelerometer.MovementData
Wrapper class encapsulating movement information received from the board
|
static class |
Mma8452qAccelerometer.MovementType
Detectable movement types on the sensor
|
static class |
Mma8452qAccelerometer.Orientation
Orientation definitions for the accelerometer.
|
static interface |
Mma8452qAccelerometer.OrientationConfigEditor
Interface for configuring settings for orientation detection
|
static class |
Mma8452qAccelerometer.OutputDataRate
Available data rates on the MWR accelerometer (MMA8452Q)
|
static class |
Mma8452qAccelerometer.PowerMode
Enumeration of the available power modes on the accelerometer
|
static interface |
Mma8452qAccelerometer.SamplingConfigEditor
Interface for configuring axis sampling
|
static interface |
Mma8452qAccelerometer.ShakeConfigEditor
Interface for configuring shake detection
|
static class |
Mma8452qAccelerometer.SleepModeRate
Enumeration of sleep mode data rates
|
static interface |
Mma8452qAccelerometer.SourceSelector
Selector for available data sources on the chip
|
static interface |
Mma8452qAccelerometer.TapConfigEditor
Interface for configuring tap detection parameters
|
static interface |
Mma8452qAccelerometer.TapData
Wrapper class encapsulating tap data received from the accelerometer.
|
static class |
Mma8452qAccelerometer.TapType
Detectable tap types
|
Accelerometer.BoardOrientation
disableAxisSampling, disableOrientationDetection, enableAxisSampling, enableOrientationDetection, setAxisSamplingRange, setOutputDataRate, start, stop
Mma8452qAccelerometer.SourceSelector routeData()
routeData
in interface Accelerometer
void setOutputDataRate(Mma8452qAccelerometer.OutputDataRate rate)
rate
- Data rate to sample atMma8452qAccelerometer.AutoSleepConfigEditor configureAutoSleep()
void enableAutoSleepMode()
void disableAutoSleepMode()
void setPowerMode(Mma8452qAccelerometer.PowerMode mode)
mode
- Power mode to useMma8452qAccelerometer.SamplingConfigEditor configureAxisSampling()
Mma8452qAccelerometer.TapConfigEditor configureTapDetection()
void enableTapDetection(Mma8452qAccelerometer.TapType... types)
types
- Tap types to look forvoid disableTapDetection()
Mma8452qAccelerometer.ShakeConfigEditor configureShakeDetection()
void enableShakeDetection()
void disableShakeDetection()
Mma8452qAccelerometer.MovementConfigEditor configureMotionDetection()
Mma8452qAccelerometer.MovementConfigEditor configureFreeFallDetection()
void enableMovementDetection(Mma8452qAccelerometer.MovementType type)
type
- Movement type to detect, either free fall or general motionvoid disableMovementDetection()
Mma8452qAccelerometer.OrientationConfigEditor configureOrientationDetection()