public enum SPIBitOrder extends java.lang.Enum<SPIBitOrder>
SPI interface.| Enum Constant and Description |
|---|
LSB_FIRST
Least significant bit first.
|
MSB_FIRST
Most significant bit first.
|
| Modifier and Type | Method and Description |
|---|---|
static SPIBitOrder |
getByValue(int value)
Returns the
SPIBitOrder associated to the provided value. |
int |
getValue()
Returns the SPI message bit order value.
|
static SPIBitOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SPIBitOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SPIBitOrder MSB_FIRST
public static final SPIBitOrder LSB_FIRST
public static SPIBitOrder[] values()
for (SPIBitOrder c : SPIBitOrder.values()) System.out.println(c);
public static SPIBitOrder 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 SPIBitOrder getByValue(int value)
SPIBitOrder associated to the provided value.value - The value of the SPIBitOrder to retrieve.SPIBitOrder associated to the provided value or
null if not found.