public static enum SerialComManager.STOPBITS extends Enum<SerialComManager.STOPBITS>
Pre-defined enum constants for number of stop bits in a serial frame.
| Enum Constant and Description |
|---|
SB_1
Number of stop bits in one frame is 1.
|
SB_1_5
Number of stop bits in one frame is 1.5.
|
SB_2
Number of stop bits in one frame is 2.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.STOPBITS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.STOPBITS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.STOPBITS SB_1
Number of stop bits in one frame is 1.
public static final SerialComManager.STOPBITS SB_1_5
Number of stop bits in one frame is 1.5.
public static final SerialComManager.STOPBITS SB_2
Number of stop bits in one frame is 2.
public static SerialComManager.STOPBITS[] values()
for (SerialComManager.STOPBITS c : SerialComManager.STOPBITS.values()) System.out.println(c);
public static SerialComManager.STOPBITS 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 getValue()
Copyright © 2017. All rights reserved.