Enum RxtxChannelConfig.Databits
- All Implemented Interfaces:
Serializable, Comparable<RxtxChannelConfig.Databits>
- Enclosing interface:
RxtxChannelConfig
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription5 data bits will be used for each character (ie.6 data bits will be used for each character7 data bits will be used for each character (ie.8 data bits will be used for each character (ie. binary data) -
Method Summary
Modifier and TypeMethodDescriptionintvalue()static RxtxChannelConfig.DatabitsvalueOf(int value) Returns the enum constant of this type with the specified name.static RxtxChannelConfig.DatabitsReturns the enum constant of this type with the specified name.static RxtxChannelConfig.Databits[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATABITS_5
5 data bits will be used for each character (ie. Baudot code) -
DATABITS_6
6 data bits will be used for each character -
DATABITS_7
7 data bits will be used for each character (ie. ASCII) -
DATABITS_8
8 data bits will be used for each character (ie. binary data)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
value
public int value() -
valueOf
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:
value- 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
-