public static enum SerialComManager.FLOWCONTROL extends Enum<SerialComManager.FLOWCONTROL>
Pre-defined enum constants for controlling data flow between DTE and DCE or two serial devices.
| Enum Constant and Description |
|---|
DTR_DSR
Operating system (or driver) will assert or de-assert DTR/DSR lines as per the amount of
data in input buffers.
|
NONE
No flow control; application is responsible to manage data buffers.
|
RTS_CTS
Operating system (or driver) will assert or de-assert RTS/CTS lines as per the amount of
data in input buffers.
|
XON_XOFF
Operating system (or driver) will send XON or XOFF characters as per the amount of data
in input buffers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.FLOWCONTROL |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.FLOWCONTROL[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.FLOWCONTROL NONE
No flow control; application is responsible to manage data buffers. Application can assert or de-assert RTS/CTS or DTR/DSR signals explicitly.
public static final SerialComManager.FLOWCONTROL RTS_CTS
Operating system (or driver) will assert or de-assert RTS/CTS lines as per the amount of data in input buffers.
public static final SerialComManager.FLOWCONTROL DTR_DSR
Operating system (or driver) will assert or de-assert DTR/DSR lines as per the amount of data in input buffers.
public static final SerialComManager.FLOWCONTROL XON_XOFF
Operating system (or driver) will send XON or XOFF characters as per the amount of data in input buffers. Upon reception of XOFF system will stop transmitting data and vice-versa.
public static SerialComManager.FLOWCONTROL[] values()
for (SerialComManager.FLOWCONTROL c : SerialComManager.FLOWCONTROL.values()) System.out.println(c);
public static SerialComManager.FLOWCONTROL 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.