public static enum SerialCommConfig.ParityBits extends Enum<SerialCommConfig.ParityBits>
Enum Constant and Description |
---|
EVEN
Sets the parity bit so that the count of bits set is an even number
|
MARK
Leaves the parity bit set to 1
|
NONE
No parity check occurs
|
ODD
Sets the parity bit so that the count of bits set is an odd number
|
SPACE
Leaves the parity bit set to 0
|
Modifier and Type | Method and Description |
---|---|
static SerialCommConfig.ParityBits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialCommConfig.ParityBits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialCommConfig.ParityBits NONE
public static final SerialCommConfig.ParityBits ODD
public static final SerialCommConfig.ParityBits EVEN
public static final SerialCommConfig.ParityBits MARK
public static final SerialCommConfig.ParityBits SPACE
public static SerialCommConfig.ParityBits[] values()
for (SerialCommConfig.ParityBits c : SerialCommConfig.ParityBits.values()) System.out.println(c);
public static SerialCommConfig.ParityBits 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 null