public enum SPIChipSelect extends java.lang.Enum<SPIChipSelect>
SPI
interface.Enum Constant | Description |
---|---|
ACTIVE_HIGH |
High Chip Select active level.
|
ACTIVE_LOW |
Low Chip Select active level.
|
NOT_CONTROLLED |
Chip Select not controlled by driver.
|
Modifier and Type | Method | Description |
---|---|---|
static SPIChipSelect |
getByValue(int value) |
Returns the
SPIChipSelect associated to the provided value. |
int |
getValue() |
Returns the SPI chip select value.
|
static SPIChipSelect |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SPIChipSelect[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SPIChipSelect ACTIVE_LOW
public static final SPIChipSelect ACTIVE_HIGH
public static final SPIChipSelect NOT_CONTROLLED
public static SPIChipSelect[] values()
for (SPIChipSelect c : SPIChipSelect.values()) System.out.println(c);
public static SPIChipSelect 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 int getValue()
public static SPIChipSelect getByValue(int value)
SPIChipSelect
associated to the provided value.value
- The value of the SPIChipSelect
to retrieve.SPIChipSelect
associated to the provided value or
null
if not found.