public enum UARTPin extends java.lang.Enum<UARTPin>
UART is the abreviation for Universal Synchronous & Asynchronous Receiver Transmitter.
In this framework, UART is mainly used for the communications with the BrickPi.
Modifier and Type | Method and Description |
---|---|
Pin |
getPin()
Get the Raspoid pin abstraction for this UARTPin.
|
static UARTPin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UARTPin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UARTPin TXD
Pin.PHYSICAL_08
public static final UARTPin RXD
Pin.PHYSICAL_10
public static UARTPin[] values()
for (UARTPin c : UARTPin.values()) System.out.println(c);
public static UARTPin 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 null