public static enum RxtxChannelConfig.Paritybit extends java.lang.Enum<RxtxChannelConfig.Paritybit>
枚举常量和说明 |
---|
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
|
限定符和类型 | 方法和说明 |
---|---|
int |
value() |
static RxtxChannelConfig.Paritybit |
valueOf(int value) |
static RxtxChannelConfig.Paritybit |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static RxtxChannelConfig.Paritybit[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic int value()
public static RxtxChannelConfig.Paritybit valueOf(int value)