public enum SpiClockMode extends Enum<SpiClockMode>
SPI Clock Polarity Clock Phase Clock Edge Mode (CPOL/CKP) (CPHA) (CKE/NCPHA) 0 0 0 1 1 0 1 0 2 1 0 1 3 1 1 0
Modifier and Type | Method and Description |
---|---|
static SpiClockMode |
getByMode(int mode) |
byte |
getMode() |
static SpiClockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpiClockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpiClockMode MODE_0
public static final SpiClockMode MODE_1
public static final SpiClockMode MODE_2
public static final SpiClockMode MODE_3
public static SpiClockMode[] values()
for (SpiClockMode c : SpiClockMode.values()) System.out.println(c);
public static SpiClockMode 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 byte getMode()
public static SpiClockMode getByMode(int mode)
Copyright © 2016–2017 mattjlewis. All rights reserved.