public static enum AccelerometerBosch.AccRange extends Enum<AccelerometerBosch.AccRange>
Enum Constant and Description |
---|
AR_16G
+/-16g
|
AR_2G
+/-2g
|
AR_4G
+/-4g
|
AR_8G
+/-8g
|
Modifier and Type | Method and Description |
---|---|
static AccelerometerBosch.AccRange |
bitMaskToRange(byte bitMask) |
static float[] |
ranges() |
static AccelerometerBosch.AccRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccelerometerBosch.AccRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccelerometerBosch.AccRange AR_2G
public static final AccelerometerBosch.AccRange AR_4G
public static final AccelerometerBosch.AccRange AR_8G
public static final AccelerometerBosch.AccRange AR_16G
public final byte bitmask
public final float scale
public final float range
public static AccelerometerBosch.AccRange[] values()
for (AccelerometerBosch.AccRange c : AccelerometerBosch.AccRange.values()) System.out.println(c);
public static AccelerometerBosch.AccRange valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AccelerometerBosch.AccRange bitMaskToRange(byte bitMask)
public static float[] ranges()