public enum SpiMode extends Enum<SpiMode>
Modifier and Type | Method and Description |
---|---|
static SpiMode |
getByNumber(int modeNumber) |
static SpiMode |
getByNumber(short modeNumber) |
short |
getMode() |
static SpiMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpiMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static SpiMode[] values()
for (SpiMode c : SpiMode.values()) System.out.println(c);
public static SpiMode 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 short getMode()
public static SpiMode getByNumber(short modeNumber)
public static SpiMode getByNumber(int modeNumber)
Copyright © 2012–2019 Pi4J. All rights reserved.