Package com.pi4j.io.spi
Enum SpiChannel
- java.lang.Object
-
- java.lang.Enum<SpiChannel>
-
- com.pi4j.io.spi.SpiChannel
-
- All Implemented Interfaces:
Serializable
,Comparable<SpiChannel>
public enum SpiChannel extends Enum<SpiChannel>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpiChannel
getByNumber(int channelNumber)
static SpiChannel
getByNumber(short channelNumber)
short
getChannel()
static SpiChannel
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpiChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CS0
public static final SpiChannel CS0
-
CS1
public static final SpiChannel CS1
-
-
Method Detail
-
values
public static SpiChannel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpiChannel c : SpiChannel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpiChannel valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getChannel
public short getChannel()
-
getByNumber
public static SpiChannel getByNumber(short channelNumber)
-
getByNumber
public static SpiChannel getByNumber(int channelNumber)
-
-