lejos.nxt.addon
Enum DIMUGyro.SampleRate
java.lang.Object
java.lang.Enum<DIMUGyro.SampleRate>
lejos.nxt.addon.DIMUGyro.SampleRate
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DIMUGyro.SampleRate>
- Enclosing class:
- DIMUGyro
public static enum DIMUGyro.SampleRate
- extends java.lang.Enum<DIMUGyro.SampleRate>
Internal sample rates supported by the sensor
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
_100Hz
public static final DIMUGyro.SampleRate _100Hz
_200Hz
public static final DIMUGyro.SampleRate _200Hz
_400Hz
public static final DIMUGyro.SampleRate _400Hz
_800Hz
public static final DIMUGyro.SampleRate _800Hz
values
public static final DIMUGyro.SampleRate[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(DIMUGyro.SampleRate c : DIMUGyro.SampleRate.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static DIMUGyro.SampleRate valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
getCode
public byte getCode()