maslab.orc
Enum Orc.PinMode

java.lang.Object
  extended by java.lang.Enum<Orc.PinMode>
      extended by maslab.orc.Orc.PinMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Orc.PinMode>
Enclosing class:
Orc

public static enum Orc.PinMode
extends java.lang.Enum<Orc.PinMode>

Pin modes, for use with pinModeSet


Enum Constant Summary
ANALOG_IN
           
ANALOG_OUT
           
DIGITAL_IN
           
DIGITAL_IN_PULLDOWN
           
DIGITAL_IN_PULLUP
           
DIGITAL_OUT
           
DIGITAL_OUT_SLOW
           
MONOPHASE
           
PWM
           
QUADPHASE
           
QUADPHASEFAST
          Requires U2 firmware upgrade.
SERVO
           
SONAR_ECHO
           
SONAR_PING
           
 
Method Summary
 int getCode()
           
 java.lang.String toString()
           
static Orc.PinMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Orc.PinMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DIGITAL_IN

public static final Orc.PinMode DIGITAL_IN

DIGITAL_IN_PULLUP

public static final Orc.PinMode DIGITAL_IN_PULLUP

DIGITAL_IN_PULLDOWN

public static final Orc.PinMode DIGITAL_IN_PULLDOWN

DIGITAL_OUT

public static final Orc.PinMode DIGITAL_OUT

DIGITAL_OUT_SLOW

public static final Orc.PinMode DIGITAL_OUT_SLOW

SERVO

public static final Orc.PinMode SERVO

PWM

public static final Orc.PinMode PWM

SONAR_PING

public static final Orc.PinMode SONAR_PING

SONAR_ECHO

public static final Orc.PinMode SONAR_ECHO

ANALOG_IN

public static final Orc.PinMode ANALOG_IN

ANALOG_OUT

public static final Orc.PinMode ANALOG_OUT

QUADPHASE

public static final Orc.PinMode QUADPHASE

QUADPHASEFAST

public static final Orc.PinMode QUADPHASEFAST
Requires U2 firmware upgrade.


MONOPHASE

public static final Orc.PinMode MONOPHASE
Method Detail

values

public static final Orc.PinMode[] 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(Orc.PinMode c : Orc.PinMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Orc.PinMode 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 int getCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Orc.PinMode>