public static enum Bmi160Accelerometer.MotionType extends java.lang.Enum<Bmi160Accelerometer.MotionType>
Enum Constant and Description |
---|
ANY_MOTION
Detects motion using the slope of successive acceleration signals
|
NO_MOTION
Detects if there is no motion
|
SIGNIFICANT_MOTION
Detects motion that resulted from a change in location, i.e.
|
SLOW_MOTION
Same as any motion exceed without information on which axis triggered the interrupt
|
Modifier and Type | Method and Description |
---|---|
static Bmi160Accelerometer.MotionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Bmi160Accelerometer.MotionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bmi160Accelerometer.MotionType NO_MOTION
public static final Bmi160Accelerometer.MotionType SLOW_MOTION
public static final Bmi160Accelerometer.MotionType ANY_MOTION
public static final Bmi160Accelerometer.MotionType SIGNIFICANT_MOTION
public static Bmi160Accelerometer.MotionType[] values()
for (Bmi160Accelerometer.MotionType c : Bmi160Accelerometer.MotionType.values()) System.out.println(c);
public static Bmi160Accelerometer.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