Package com.pi4j.io.serial
Enum Baud
- java.lang.Object
-
- java.lang.Enum<Baud>
-
- com.pi4j.io.serial.Baud
-
- All Implemented Interfaces:
Serializable
,Comparable<Baud>
public enum Baud extends Enum<Baud>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Baud
getInstance(int baud_rate)
int
getValue()
static Baud
valueOf(String name)
Returns the enum constant of this type with the specified name.static Baud[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_50
public static final Baud _50
-
_75
public static final Baud _75
-
_110
public static final Baud _110
-
_134
public static final Baud _134
-
_150
public static final Baud _150
-
_200
public static final Baud _200
-
_300
public static final Baud _300
-
_600
public static final Baud _600
-
_1200
public static final Baud _1200
-
_1800
public static final Baud _1800
-
_2400
public static final Baud _2400
-
_4800
public static final Baud _4800
-
_9600
public static final Baud _9600
-
_19200
public static final Baud _19200
-
_38400
public static final Baud _38400
-
_57600
public static final Baud _57600
-
_115200
public static final Baud _115200
-
_230400
public static final Baud _230400
-
-
Method Detail
-
values
public static Baud[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Baud c : Baud.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Baud valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
getInstance
public static Baud getInstance(int baud_rate)
-
-