lejos.nxt.addon
Enum DIMUGyro.SampleRate

java.lang.Object
  extended by java.lang.Enum<DIMUGyro.SampleRate>
      extended by 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


Enum Constant Summary
_100Hz
           
_200Hz
           
_400Hz
           
_800Hz
           
 
Method Summary
 byte getCode()
           
static DIMUGyro.SampleRate valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DIMUGyro.SampleRate[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
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
 

Enum Constant Detail

_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
Method Detail

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()