public enum SpiChannel extends Enum<SpiChannel>
| Modifier and Type | Method and 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.
|
public static final SpiChannel CS0
public static final SpiChannel CS1
public static SpiChannel[] values()
for (SpiChannel c : SpiChannel.values()) System.out.println(c);
public static SpiChannel 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 getChannel()
public static SpiChannel getByNumber(short channelNumber)
public static SpiChannel getByNumber(int channelNumber)
Copyright © 2012–2019 Pi4J. All rights reserved.