public static enum PulseInput.PulseMode extends java.lang.Enum<PulseInput.PulseMode>
| Enum Constant and Description |
|---|
FREQ
Frequency measurement (rising-edge-to-rising-edge).
|
FREQ_SCALE_16
Frequency measurement (rising-edge-to-rising-edge) with 16x scaling.
|
FREQ_SCALE_4
Frequency measurement (rising-edge-to-rising-edge) with 4x scaling.
|
NEGATIVE
Negative pulse measurement (falling-edge-to-rising-edge).
|
POSITIVE
Positive pulse measurement (rising-edge-to-falling-edge).
|
| Modifier and Type | Field and Description |
|---|---|
int |
scaling
The scaling factor as an integer.
|
| Modifier and Type | Method and Description |
|---|---|
static PulseInput.PulseMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PulseInput.PulseMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PulseInput.PulseMode POSITIVE
public static final PulseInput.PulseMode NEGATIVE
public static final PulseInput.PulseMode FREQ
public static final PulseInput.PulseMode FREQ_SCALE_4
public static final PulseInput.PulseMode FREQ_SCALE_16
public static PulseInput.PulseMode[] values()
for (PulseInput.PulseMode c : PulseInput.PulseMode.values()) System.out.println(c);
public static PulseInput.PulseMode 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 null