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
Modifier and Type | Method and Description |
---|---|
Mma8452qAccelerometer.AutoSleepConfigEditor |
configureAutoSleep()
Configures auto sleep mode
|
Mma8452qAccelerometer.SamplingConfigEditor |
configureAxisSampling()
Configures axis sampling
|
Mma8452qAccelerometer.MovementConfigEditor |
configureFreeFallDetection()
Configures free fall detection settings.
|
Mma8452qAccelerometer.MovementConfigEditor |
configureMotionDetection()
Configures motion detection settings.
|
Mma8452qAccelerometer.OrientationConfigEditor |
configureOrientationDetection()
Configures orientation settings
|
Mma8452qAccelerometer.ShakeConfigEditor |
configureShakeDetection()
Configures shake detection settings
|
Mma8452qAccelerometer.TapConfigEditor |
configureTapDetection()
Configures settings for tap detection
|
void |
disableAutoSleepMode()
Disable autosleep mode
|
void |
disableMovementDetection()
Disables movement detection
|
void |
disableShakeDetection()
Disables shake detection
|
void |
disableTapDetection()
Disables tap detection
|
void |
enableAutoSleepMode()
Enable autosleep mode
|
void |
enableMovementDetection(Mma8452qAccelerometer.MovementType type)
Enables movement detection when the accelerometer is active
|
void |
enableShakeDetection()
Enables shake detection when the accelerometer is active
|
void |
enableTapDetection(Mma8452qAccelerometer.TapType... types)
Enables tap detection when accelerometer is active
|
Mma8452qAccelerometer.SourceSelector |
routeData()
Initiates the creation of a route for MMA8452Q sensor data
|
void |
setOutputDataRate(Mma8452qAccelerometer.OutputDataRate rate)
Sets the sampling data rate
|
void |
setPowerMode(Mma8452qAccelerometer.PowerMode mode)
Sets the power mode of the accelerometer
|
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()