public static enum Bma255Accelerometer.MotionType extends java.lang.Enum<Bma255Accelerometer.MotionType>
Enum Constant and Description |
---|
ANY_MOTION
Detects motion using the slope of successive acceleration signals
|
NO_MOTION
Detects if there is no motion
|
SLOW_MOTION
Same as any motion exceed without information on which axis triggered the interrupt
|
Modifier and Type | Method and Description |
---|---|
static Bma255Accelerometer.MotionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Bma255Accelerometer.MotionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bma255Accelerometer.MotionType NO_MOTION
public static final Bma255Accelerometer.MotionType SLOW_MOTION
public static final Bma255Accelerometer.MotionType ANY_MOTION
public static Bma255Accelerometer.MotionType[] values()
for (Bma255Accelerometer.MotionType c : Bma255Accelerometer.MotionType.values()) System.out.println(c);
public static Bma255Accelerometer.MotionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null