|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SerialConfiguration>
edu.nau.cs.scu.SerialConfiguration
public enum SerialConfiguration
This is an enumeration which describes the different baud rates and configurations for serial communications.
Enum Constant Summary | |
---|---|
_115200_8_N_1
This constant is for communicating at a baud rate of 115.2k, 8 data bits, 1 stop bit, and no parity |
|
_38400_8_N_1
This constant is for communicating at a baud rate of 115.2k, 8 data bits, 1 stop bit, and no parity |
Method Summary | |
---|---|
int |
baudRate()
Retrieves the baud rate specified by this enum constant |
int |
dataBits()
Retrieves the numerical constant specified in SerialPort which signifies the number of data bits |
SerialConfiguration |
getSerialConfig(java.lang.String propertyString)
Retrieves the SerialConfiguration enum constant related to the specially formatted property string which can be retrieved using propertyString() . |
int |
parityBits()
Retrieves the numerical constant specified in SerialPort which signifies the number of parity bits |
java.lang.String |
propertyString()
Returns a specially formatted string which uniquely identifies one of the SerialConfiguration enum constants. |
int |
stopBits()
Retrieves the numerical constant specified in SerialPort which signifies the number of stop bits |
static SerialConfiguration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SerialConfiguration[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SerialConfiguration _115200_8_N_1
public static final SerialConfiguration _38400_8_N_1
Method Detail |
---|
public static SerialConfiguration[] values()
for (SerialConfiguration c : SerialConfiguration.values()) System.out.println(c);
public static SerialConfiguration 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 name
java.lang.NullPointerException
- if the argument is nullpublic int baudRate()
public int dataBits()
public int parityBits()
public int stopBits()
public java.lang.String propertyString()
public SerialConfiguration getSerialConfig(java.lang.String propertyString)
propertyString()
.
propertyString
- The formatted string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |