public static enum RxtxChannelConfig.Paritybit extends Enum<RxtxChannelConfig.Paritybit>
Enum Constant and Description |
---|
EVEN
An even parity bit will be sent with each data character, ie. will be set
to 1 if the data character contains an odd number of bits set to 1.
|
MARK
A mark parity bit (ie. always 1) will be sent with each data character
|
NONE
No parity bit will be sent with each data character at all
|
ODD
An odd parity bit will be sent with each data character, ie. will be set
to 1 if the data character contains an even number of bits set to 1.
|
SPACE
A space parity bit (ie. always 0) will be sent with each data character
|
Modifier and Type | Method and Description |
---|---|
int |
value() |
static RxtxChannelConfig.Paritybit |
valueOf(int value) |
static RxtxChannelConfig.Paritybit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RxtxChannelConfig.Paritybit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RxtxChannelConfig.Paritybit NONE
public static final RxtxChannelConfig.Paritybit ODD
public static final RxtxChannelConfig.Paritybit EVEN
public static final RxtxChannelConfig.Paritybit MARK
public static final RxtxChannelConfig.Paritybit SPACE
public static RxtxChannelConfig.Paritybit[] values()
for (RxtxChannelConfig.Paritybit c : RxtxChannelConfig.Paritybit.values()) System.out.println(c);
public static RxtxChannelConfig.Paritybit 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 nullpublic int value()
public static RxtxChannelConfig.Paritybit valueOf(int value)
Copyright © 2008–2015 The Netty Project. All rights reserved.