public enum IOMode extends Enum<IOMode>
IOLine| Enum Constant and Description |
|---|
ADC |
DIGITAL_IN |
DIGITAL_OUT_HIGH |
DIGITAL_OUT_LOW |
DISABLED |
PWM |
SPECIAL_FUNCTIONALITY |
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Returns the IO mode ID.
|
static IOMode |
getIOMode(int modeID)
Returns the
IOMode associated to the provided mode ID. |
static IOMode |
getIOMode(int modeID,
IOLine ioLine)
Returns the
IOMode corresponding to the provided mode ID and
IO line. |
String |
getName()
Returns the IO mode name.
|
String |
toString() |
static IOMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IOMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IOMode DIGITAL_IN
public static final IOMode DIGITAL_OUT_HIGH
public static final IOMode DIGITAL_OUT_LOW
public static final IOMode SPECIAL_FUNCTIONALITY
public int getID()
public static IOMode getIOMode(int modeID)
IOMode associated to the provided mode ID.modeID - The ID of the IOMode to retrieve.IOMode associated to the provided mode ID.public static IOMode getIOMode(int modeID, IOLine ioLine)
IOMode corresponding to the provided mode ID and
IO line.modeID - The ID of the IOMode to retrieve.ioLine - The IO line to retrieve its IOMode.IOMode corresponding to the provided mode ID and
IO line.IOLinepublic static IOMode 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 IOMode[] values()
for (IOMode c : IOMode.values()) System.out.println(c);
© Copyright 2014?2015 Digi International Inc. All rights reserved.