public enum PWMPolarity extends java.lang.Enum<PWMPolarity>
PWM
.PWM
Enum Constant | Description |
---|---|
INVERSED |
Indicates that the PWM polarity is inversed.
|
NORMAL |
Indicates that the PWM polarity is normal.
|
Modifier and Type | Method | Description |
---|---|---|
static PWMPolarity |
getByValue(java.lang.String value) |
Returns the
PWMPolarity associated to the provided polarity value. |
java.lang.String |
getValue() |
Returns the PWM polarity value.
|
java.lang.String |
toString() |
|
static PWMPolarity |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PWMPolarity[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PWMPolarity NORMAL
public static final PWMPolarity INVERSED
public static PWMPolarity[] values()
for (PWMPolarity c : PWMPolarity.values()) System.out.println(c);
public static PWMPolarity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public static PWMPolarity getByValue(java.lang.String value)
PWMPolarity
associated to the provided polarity value.value
- The value of the PWMPolarity
to retrieve.PWMPolarity
associated to the provided polarity value,
null
if not found.public java.lang.String toString()
toString
in class java.lang.Enum<PWMPolarity>